aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclshepherd <clshepherd@google.com>2019-11-14 08:45:47 -0800
committerChris Povirk <beigetangerine@gmail.com>2019-11-14 12:41:27 -0500
commit93a6c6782a9fdf1365face2461876b8644b2a404 (patch)
treeb46256fcba0d59421a5e6ec92600729abd8464b0
parent989957df7e7fce1f025818e4ccd5a416636dcd51 (diff)
downloadjimfs-93a6c6782a9fdf1365face2461876b8644b2a404.tar.gz
Fix 1 ErrorProneStyle finding:
* Constructors and methods with the same name should appear sequentially with no other code in between. Please re-order or re-name methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=280437487
-rw-r--r--jimfs/src/test/java/com/google/common/jimfs/AbstractAttributeProviderTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jimfs/src/test/java/com/google/common/jimfs/AbstractAttributeProviderTest.java b/jimfs/src/test/java/com/google/common/jimfs/AbstractAttributeProviderTest.java
index 0dac6ec..7e2bdf9 100644
--- a/jimfs/src/test/java/com/google/common/jimfs/AbstractAttributeProviderTest.java
+++ b/jimfs/src/test/java/com/google/common/jimfs/AbstractAttributeProviderTest.java
@@ -104,15 +104,15 @@ public abstract class AbstractAttributeProviderTest<P extends AttributeProvider>
assertSetAndGetSucceeds(attribute, value, false);
}
- protected void assertSetAndGetSucceedsOnCreate(String attribute, Object value) {
- assertSetAndGetSucceeds(attribute, value, true);
- }
-
protected void assertSetAndGetSucceeds(String attribute, Object value, boolean create) {
provider.set(file, provider.name(), attribute, value, create);
assertThat(provider.get(file, attribute)).isEqualTo(value);
}
+ protected void assertSetAndGetSucceedsOnCreate(String attribute, Object value) {
+ assertSetAndGetSucceeds(attribute, value, true);
+ }
+
@SuppressWarnings("EmptyCatchBlock")
protected void assertSetFails(String attribute, Object value) {
try {