File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
core/src/main/java/org/geowebcache
bdb/src/main/java/org/geowebcache/diskquota/bdb
jdbc/src/test/java/org/geowebcache/diskquota/jdbc
wms/src/test/java/org/geowebcache/config/wms Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1313 */
1414package org .geowebcache .filter .parameters ;
1515
16- import com .google .common .base .Objects ;
1716import com .google .common .base .Preconditions ;
1817import java .io .Serializable ;
1918import java .util .List ;
19+ import java .util .Objects ;
2020import java .util .Optional ;
2121import javax .annotation .Nullable ;
2222import javax .annotation .ParametersAreNonnullByDefault ;
@@ -127,7 +127,7 @@ protected Object readResolve() {
127127
128128 /** Is the given value exactly a value that could be produced by the filter. */
129129 public boolean isFilteredValue (final String value ) {
130- if (Objects .equal (value , this .getDefaultValue ())) {
130+ if (Objects .equals (value , this .getDefaultValue ())) {
131131 return true ;
132132 }
133133 if (Optional .ofNullable (this .getLegalValues ())
@@ -136,7 +136,7 @@ public boolean isFilteredValue(final String value) {
136136 return true ;
137137 }
138138 try {
139- return Objects .equal (value , this .apply (value ));
139+ return Objects .equals (value , this .apply (value ));
140140 } catch (ParameterException ex ) {
141141 return false ;
142142 }
Original file line number Diff line number Diff line change 1313 */
1414package org .geowebcache .layer ;
1515
16- import com .google .common .base .Objects ;
1716import java .io .IOException ;
1817import java .util .ArrayList ;
1918import java .util .Arrays ;
2221import java .util .Iterator ;
2322import java .util .List ;
2423import java .util .Map ;
24+ import java .util .Objects ;
2525import java .util .Set ;
2626import java .util .logging .Level ;
2727import java .util .logging .Logger ;
@@ -302,7 +302,7 @@ public FormatModifier getFormatModifier(MimeType responseFormat) {
302302 Iterator <FormatModifier > iter = formatModifiers .iterator ();
303303 while (iter .hasNext ()) {
304304 FormatModifier mod = iter .next ();
305- if (Objects .equal (mod .getResponseFormat (), responseFormat )) {
305+ if (Objects .equals (mod .getResponseFormat (), responseFormat )) {
306306 return mod ;
307307 }
308308 }
Original file line number Diff line number Diff line change 1616import static org .geowebcache .diskquota .DiskQuotaMonitor .GWC_DISKQUOTA_DISABLED ;
1717import static org .geowebcache .util .FileUtils .listFilesNullSafe ;
1818
19- import com .google .common .base .Objects ;
2019import com .sleepycat .je .CursorConfig ;
2120import com .sleepycat .je .Environment ;
2221import com .sleepycat .je .LockMode ;
3433import java .util .HashSet ;
3534import java .util .List ;
3635import java .util .Map ;
36+ import java .util .Objects ;
3737import java .util .Set ;
3838import java .util .concurrent .Callable ;
3939import java .util .concurrent .ExecutionException ;
@@ -397,12 +397,12 @@ public void deleteLayer(final String layerName) {
397397
398398 @ Override
399399 public void deleteGridSubset (String layerName , String gridSetId ) {
400- issue (new Deleter (layerName , ts -> Objects .equal (ts .getGridsetId (), gridSetId )));
400+ issue (new Deleter (layerName , ts -> Objects .equals (ts .getGridsetId (), gridSetId )));
401401 }
402402
403403 @ Override
404404 public void deleteParameters (String layerName , String parametersId ) {
405- issue (new Deleter (layerName , ts -> Objects .equal (ts .getParametersId (), parametersId )));
405+ issue (new Deleter (layerName , ts -> Objects .equals (ts .getParametersId (), parametersId )));
406406 }
407407
408408 private class Deleter implements Callable <Void > {
Original file line number Diff line number Diff line change 1010import static org .junit .Assert .assertTrue ;
1111import static org .junit .Assert .fail ;
1212
13- import com .google .common .base .Objects ;
1413import java .io .File ;
1514import java .io .IOException ;
1615import java .math .BigInteger ;
2524import java .util .HashSet ;
2625import java .util .List ;
2726import java .util .Map ;
27+ import java .util .Objects ;
2828import java .util .Set ;
2929import java .util .concurrent .Future ;
3030import java .util .stream .Collectors ;
@@ -462,7 +462,7 @@ public void testDeleteParameters() throws InterruptedException {
462462 assertThat (
463463 store .getTileSets (),
464464 containsInAnyOrder (expectedTileSets .stream ()
465- .filter (ts -> !(Objects .equal (ts .getParametersId (), paramIds [1 ])
465+ .filter (ts -> !(Objects .equals (ts .getParametersId (), paramIds [1 ])
466466 && ts .getLayerName ().equals (layerName )))
467467 .map (Matchers ::equalTo )
468468 .collect (Collectors .toSet ())));
Original file line number Diff line number Diff line change 2020import static org .hamcrest .MatcherAssert .assertThat ;
2121import static org .hamcrest .Matchers .equalTo ;
2222
23- import com .google .common .base .Objects ;
2423import java .util .Collections ;
2524import java .util .LinkedList ;
2625import java .util .List ;
26+ import java .util .Objects ;
2727import org .easymock .EasyMock ;
2828import org .geotools .data .ows .OperationType ;
2929import org .geotools .ows .wms .CRSEnvelope ;
@@ -148,7 +148,7 @@ protected Matcher<GridSet> infoEquals(int expected) {
148148 @ Override
149149 public boolean matches (Object item ) {
150150 return item instanceof GridSet
151- && Objects .equal (((GridSet ) item ).getDescription (), Integer .toString (expected ));
151+ && Objects .equals (((GridSet ) item ).getDescription (), Integer .toString (expected ));
152152 }
153153 };
154154 }
You can’t perform that action at this time.
0 commit comments