Skip to content

Commit 40960d9

Browse files
committed
Remove dead comments
1 parent 1d8b6bd commit 40960d9

33 files changed

+0
-167
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ private static Map<Class<? extends Object>, Transformer> createTypeTransformers(
199199
private transient HashMap<String, Method> writeMethods = new HashMap<>();
200200

201201
// Constructors
202-
//-------------------------------------------------------------------------
203202

204203
private transient HashMap<String, Class<? extends Object>> types = new HashMap<>();
205204

@@ -210,7 +209,6 @@ public BeanMap() {
210209
}
211210

212211
// Map interface
213-
//-------------------------------------------------------------------------
214212

215213
/**
216214
* Constructs a new <code>BeanMap</code> that operates on the
@@ -539,7 +537,6 @@ public Object getBean() {
539537
}
540538

541539
// Helper methods
542-
//-------------------------------------------------------------------------
543540

544541
/**
545542
* Returns the accessor for the property with the given name.
@@ -586,7 +583,6 @@ protected Transformer getTypeTransformer( final Class<?> aType ) {
586583
}
587584

588585
// Properties
589-
//-------------------------------------------------------------------------
590586

591587
/**
592588
* Returns the mutator for the property with the given name.
@@ -656,7 +652,6 @@ public Iterator<String> keyIterator() {
656652
}
657653

658654
// Implementation methods
659-
//-------------------------------------------------------------------------
660655

661656
/**
662657
* Get the keys for this BeanMap.
@@ -750,7 +745,6 @@ public void putAllWriteable(final BeanMap map) {
750745
}
751746

752747
// Implementation classes
753-
//-------------------------------------------------------------------------
754748

755749
/**
756750
* Reinitializes this bean. Called during {@link #setBean(Object)}.

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ protected K iteratorNext(final Map.Entry<K, V> entry) {
316316
}
317317

318318
// Constructors
319-
// ----------------------------------------------------------------------
320319

321320
/**
322321
* Collection implementation over the values of the FastHashMap
@@ -347,7 +346,6 @@ protected V iteratorNext(final Map.Entry<K, V> entry) {
347346
private boolean fast;
348347

349348
// Property access
350-
// ----------------------------------------------------------------------
351349

352350
/**
353351
* Construct an empty map.
@@ -366,7 +364,6 @@ public WeakFastHashMap(final int capacity) {
366364
}
367365

368366
// Map access
369-
// ----------------------------------------------------------------------
370367
// These methods can forward straight to the wrapped Map in 'fast' mode.
371368
// (because they are query methods)
372369

@@ -430,7 +427,6 @@ protected Map<K, V> cloneMap(final Map<? extends K, ? extends V> map) {
430427
}
431428

432429
// Map modification
433-
// ----------------------------------------------------------------------
434430
// These methods perform special behaviour in 'fast' mode.
435431
// The map is cloned, updated and then assigned back.
436432
// See the comments at the top as to why this won't always work.
@@ -478,7 +474,6 @@ protected Map<K, V> createMap(final int capacity) {
478474
}
479475

480476
// Basic object methods
481-
// ----------------------------------------------------------------------
482477

483478
protected Map<K, V> createMap(final int capacity, final float factor) {
484479
return new WeakHashMap<>(capacity, factor);
@@ -499,7 +494,6 @@ public Set<Map.Entry<K, V>> entrySet() {
499494
}
500495

501496
// Map views
502-
// ----------------------------------------------------------------------
503497

504498
/**
505499
* Compare the specified object with this list for equality. This
@@ -588,7 +582,6 @@ public boolean getFast() {
588582
}
589583

590584
// Abstractions on Map creations (for subclasses such as WeakFastHashMap)
591-
// ----------------------------------------------------------------------
592585

593586
/**
594587
* Return the hash code value for this map. This implementation uses
@@ -685,7 +678,6 @@ public void putAll(final Map<? extends K, ? extends V> in) {
685678
}
686679

687680
// Map view inner classes
688-
// ----------------------------------------------------------------------
689681

690682
/**
691683
* Remove any mapping for this key, and return any previously

src/test/java/org/apache/commons/beanutils/bugs/Jira347TestCase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ public void testMappedPropertyDescriptor_AnyArgsProperty() throws Exception {
120120
final ClassLoader loader = newClassLoader();
121121
final Class<?> beanClass = loader.loadClass(className);
122122
beanClass.getConstructor().newInstance();
123-
// -----------------------------------------------------------------------------
124123

125124
// Sanity checks only
126125
assertNotNull("ClassLoader is null", loader);

src/test/java/org/apache/commons/beanutils/converters/ArrayConverterTestCase.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public static TestSuite suite() {
3838
return new TestSuite(ArrayConverterTestCase.class);
3939
}
4040

41-
// ------------------------------------------------------------------------
42-
4341
/**
4442
* Construct a new Array Converter test case.
4543
* @param name Test Name
@@ -74,8 +72,6 @@ private void checkArray(final String msg, final Object expected, final Object re
7472
public void setUp() throws Exception {
7573
}
7674

77-
// ------------------------------------------------------------------------
78-
7975
/** Tear Down */
8076
@Override
8177
public void tearDown() throws Exception {

src/test/java/org/apache/commons/beanutils/converters/BigDecimalConverterTestCase.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,10 @@ private ExtendingBigDecimal(final String val) {
4242
}
4343
}
4444

45-
// ------------------------------------------------------------------------
46-
4745
public static TestSuite suite() {
4846
return new TestSuite(BigDecimalConverterTestCase.class);
4947
}
5048

51-
// ------------------------------------------------------------------------
52-
5349
private Converter converter;
5450

5551
public BigDecimalConverterTestCase(final String name) {
@@ -61,8 +57,6 @@ protected Class<?> getExpectedType() {
6157
return BigDecimal.class;
6258
}
6359

64-
// ------------------------------------------------------------------------
65-
6660
@Override
6761
protected NumberConverter makeConverter() {
6862
return new BigDecimalConverter();
@@ -82,8 +76,6 @@ public void setUp() throws Exception {
8276
numbers[3] = new BigDecimal("23");
8377
}
8478

85-
// ------------------------------------------------------------------------
86-
8779
@Override
8880
public void tearDown() throws Exception {
8981
converter = null;

src/test/java/org/apache/commons/beanutils/converters/BigIntegerConverterTestCase.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ public static TestSuite suite() {
3333
return new TestSuite(BigIntegerConverterTestCase.class);
3434
}
3535

36-
// ------------------------------------------------------------------------
37-
3836
private Converter converter;
3937

40-
// ------------------------------------------------------------------------
41-
4238
public BigIntegerConverterTestCase(final String name) {
4339
super(name);
4440
}
@@ -53,8 +49,6 @@ protected NumberConverter makeConverter() {
5349
return new BigIntegerConverter();
5450
}
5551

56-
// ------------------------------------------------------------------------
57-
5852
@Override
5953
protected NumberConverter makeConverter(final Object defaultValue) {
6054
return new BigIntegerConverter(defaultValue);
@@ -74,8 +68,6 @@ public void tearDown() throws Exception {
7468
converter = null;
7569
}
7670

77-
// ------------------------------------------------------------------------
78-
7971
public void testSimpleConversion() throws Exception {
8072
final String[] message= {
8173
"from String",

src/test/java/org/apache/commons/beanutils/converters/ByteConverterTestCase.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@ public static TestSuite suite() {
3232
return new TestSuite(ByteConverterTestCase.class);
3333
}
3434

35-
// ------------------------------------------------------------------------
36-
3735
private Converter converter;
3836

39-
// ------------------------------------------------------------------------
40-
4137
public ByteConverterTestCase(final String name) {
4238
super(name);
4339
}
@@ -52,8 +48,6 @@ protected NumberConverter makeConverter() {
5248
return new ByteConverter();
5349
}
5450

55-
// ------------------------------------------------------------------------
56-
5751
@Override
5852
protected NumberConverter makeConverter(final Object defaultValue) {
5953
return new ByteConverter(defaultValue);
@@ -72,8 +66,6 @@ public void tearDown() throws Exception {
7266
converter = null;
7367
}
7468

75-
// ------------------------------------------------------------------------
76-
7769
/**
7870
* Test Invalid Amounts (too big/small)
7971
*/

src/test/java/org/apache/commons/beanutils/converters/CharacterConverterTestCase.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public static TestSuite suite() {
3636
return new TestSuite(CharacterConverterTestCase.class);
3737
}
3838

39-
// ------------------------------------------------------------------------
40-
4139
/**
4240
* Construct a new Character Converter test case.
4341
* @param name Test Name
@@ -56,8 +54,6 @@ public void setUp() throws Exception {
5654
public void tearDown() throws Exception {
5755
}
5856

59-
// ------------------------------------------------------------------------
60-
6157
/**
6258
* Tests whether the primitive char class can be passed as target type.
6359
*/

src/test/java/org/apache/commons/beanutils/converters/ClassConverterTestCase.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public static TestSuite suite() {
3636
return new TestSuite(ClassConverterTestCase.class);
3737
}
3838

39-
// ------------------------------------------------------------------------
40-
4139
/**
4240
* Construct a new Class Converter test case.
4341
* @param name Test Name
@@ -56,8 +54,6 @@ public void setUp() throws Exception {
5654
public void tearDown() throws Exception {
5755
}
5856

59-
// ------------------------------------------------------------------------
60-
6157
/**
6258
* Test Array Conversion
6359
*/

src/test/java/org/apache/commons/beanutils/converters/ClassReloaderTestCase.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@
2727

2828
public class ClassReloaderTestCase extends TestCase {
2929

30-
// ------------------------------------------------------------------------
31-
3230
public static class DummyClass {
3331
}
3432

3533
public static TestSuite suite() {
3634
return new TestSuite(ClassReloaderTestCase.class);
3735
}
3836

39-
// ------------------------------------------------------------------------
40-
4137
public ClassReloaderTestCase(final String name) {
4238
super(name);
4339
}

0 commit comments

Comments
 (0)