Skip to content

Commit 1d9f13f

Browse files
committed
Add NewlineAtEndOfFile
1 parent 9cab0df commit 1d9f13f

18 files changed

+27
-36
lines changed

src/conf/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ limitations under the License.
3131
<module name="LineLength">
3232
<property name="max" value="160"/>
3333
</module>
34+
<module name="NewlineAtEndOfFile" />
3435
<module name="TreeWalker">
3536
<module name="ExplicitInitializationCheck" />
3637
<module name="AvoidStarImport"/>

src/main/java/org/apache/commons/beanutils/ContextClassLoaderLocal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ public synchronized void unset() {
212212
public synchronized void unset(final ClassLoader classLoader) {
213213
valueByClassLoader.remove(classLoader);
214214
}
215-
}
215+
}

src/main/java/org/apache/commons/beanutils/DynaProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,4 @@ private void writeObject(final ObjectOutputStream out) throws IOException {
335335
// write out other values
336336
out.defaultWriteObject();
337337
}
338-
}
338+
}

src/main/java/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ private String propertyName(final Method m) {
184184
return methodName.length() > 1 ? Introspector.decapitalize(methodName) : methodName
185185
.toLowerCase(Locale.ROOT);
186186
}
187-
}
187+
}

src/main/java/org/apache/commons/beanutils/LazyDynaClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ public void setReturnNull(final boolean returnNull) {
357357
this.returnNull = returnNull;
358358
}
359359

360-
}
360+
}

src/main/java/org/apache/commons/beanutils/LazyDynaMap.java

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -458,17 +458,14 @@ public void setRestricted(final boolean restricted) {
458458
this.restricted = restricted;
459459
}
460460

461-
/**
462-
* Set whether this DynaClass should return a <code>null</code> from
463-
* the <code>getDynaProperty(name)</code> method if the property
464-
* doesn't exist.
465-
*
466-
* @param returnNull <code>true</code> if a <code>null</code> {@link DynaProperty}
467-
* should be returned if the property doesn't exist, otherwise
468-
* <code>false</code> if a new {@link DynaProperty} should be created.
469-
*/
470-
public void setReturnNull(final boolean returnNull) {
471-
this.returnNull = returnNull;
472-
}
461+
/**
462+
* Set whether this DynaClass should return a <code>null</code> from the <code>getDynaProperty(name)</code> method if the property doesn't exist.
463+
*
464+
* @param returnNull <code>true</code> if a <code>null</code> {@link DynaProperty} should be returned if the property doesn't exist, otherwise
465+
* <code>false</code> if a new {@link DynaProperty} should be created.
466+
*/
467+
public void setReturnNull(final boolean returnNull) {
468+
this.returnNull = returnNull;
469+
}
473470

474-
}
471+
}

src/test/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,4 @@ public void testEvaluateWithWriteOnlyProperty() {
257257
/* This is what should happen */
258258
}
259259
}
260-
}
260+
}

src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,4 +367,4 @@ public void testValues() {
367367
i++;
368368
}
369369
}
370-
}
370+
}

src/test/java/org/apache/commons/beanutils/LazyDynaBeanTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,4 +480,4 @@ public void testSimplePropertyRestricted() {
480480

481481
}
482482

483-
}
483+
}

src/test/java/org/apache/commons/beanutils/LazyDynaClassTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,4 @@ public void testRemovePropertyRestricted() {
248248
// expected result
249249
}
250250
}
251-
}
251+
}

0 commit comments

Comments
 (0)