Description
Several source files contain empty comment lines consisting only of // with no text. These serve no purpose and should be removed to keep the code clean.
Affected Files (10 total)
builder/src/builder/org/jnode/linker/Elf.java (2 occurrences)
builder/src/builder/org/jnode/linker/Section.java (1 occurrence)
gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.java
gui/src/awt/org/jnode/awt/font/spi/AbstractFontProvider.java
gui/src/test/org/jnode/test/gui/Imageutil.java
distr/src/test/org/jnode/apps/jpartition/utils/device/DeviceUtils.java (3 occurrences)
core/src/core/org/jnode/vm/x86/compiler/l2/GenericX86CodeGenerator.java
core/src/core/org/jnode/vm/compiler/ir/IRTest.java
core/src/core/org/jnode/vm/compiler/ir/NativeTest.java
core/src/core/org/jnode/vm/compiler/ir/PrimitiveTest.java
Task
For each file:
- Find lines containing only
// (with optional trailing whitespace)
- Delete these empty comment lines
- Verify the code compiles after changes
Example Fix
// Before:
public void someMethod() {
//
doSomething();
}
// After:
public void someMethod() {
doSomething();
}
Verification
Run sh build.sh assemble to verify compilation before committing.
Difficulty
Easy - Just deleting empty lines, no code logic changes. Can be done with find-and-replace or sed.
Benefits
- Cleaner code
- Removes noise from the codebase
- No functional changes
Description
Several source files contain empty comment lines consisting only of
//with no text. These serve no purpose and should be removed to keep the code clean.Affected Files (10 total)
builder/src/builder/org/jnode/linker/Elf.java(2 occurrences)builder/src/builder/org/jnode/linker/Section.java(1 occurrence)gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.javagui/src/awt/org/jnode/awt/font/spi/AbstractFontProvider.javagui/src/test/org/jnode/test/gui/Imageutil.javadistr/src/test/org/jnode/apps/jpartition/utils/device/DeviceUtils.java(3 occurrences)core/src/core/org/jnode/vm/x86/compiler/l2/GenericX86CodeGenerator.javacore/src/core/org/jnode/vm/compiler/ir/IRTest.javacore/src/core/org/jnode/vm/compiler/ir/NativeTest.javacore/src/core/org/jnode/vm/compiler/ir/PrimitiveTest.javaTask
For each file:
//(with optional trailing whitespace)Example Fix
Verification
Run
sh build.sh assembleto verify compilation before committing.Difficulty
Easy - Just deleting empty lines, no code logic changes. Can be done with find-and-replace or sed.
Benefits