Skip to content

Commit 08fa99c

Browse files
committed
Enable "Remove unused private members" cleanups
Currently some other cleanups can lead to a private method become unused, what then results in a warning and maybe build failure. THis now enables the cleanups to remove unused private methods/fields/constructors to avoid that situation.
1 parent 0ac953d commit 08fa99c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

eclipse-platform-parent/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,23 @@
553553
<cleanup.remove_unnecessary_array_creation>true</cleanup.remove_unnecessary_array_creation>
554554
<!-- Remove unnecessary suppress warning tokens -->
555555
<cleanup.remove_unnecessary_suppress_warnings>true</cleanup.remove_unnecessary_suppress_warnings>
556-
<!-- Remove unnecessary whitespace-->
556+
<!-- Remove unnecessary whitespace-->
557557
<cleanup.remove_trailing_whitespaces>true</cleanup.remove_trailing_whitespaces>
558558
<cleanup.remove_trailing_whitespaces_all>true</cleanup.remove_trailing_whitespaces_all>
559559
<cleanup.remove_trailing_whitespaces_ignore_empty>false</cleanup.remove_trailing_whitespaces_ignore_empty>
560560
<!-- Removes unused imports -->
561561
<cleanup.remove_unused_imports>true</cleanup.remove_unused_imports>
562562
<cleanup.organize_imports>false</cleanup.organize_imports>
563+
<!-- Remove unused private members -->
564+
<cleanup.remove_unused_private_members>true</cleanup.remove_unused_private_members>
565+
<!-- Remove unused private types -->
566+
<cleanup.remove_unused_private_types>true</cleanup.remove_unused_private_types>
567+
<!-- Remove unused private constructors -->
568+
<cleanup.remove_private_constructors>true</cleanup.remove_private_constructors>
569+
<!-- Remove unused private fields -->
570+
<cleanup.remove_unused_private_fields>true</cleanup.remove_unused_private_fields>
571+
<!-- Remove unused private methods -->
572+
<cleanup.remove_unused_private_methods>true</cleanup.remove_unused_private_methods>
563573
</cleanUpProfile>
564574
</configuration>
565575
</execution>

0 commit comments

Comments
 (0)