@@ -1932,7 +1932,7 @@ public void visit(UnparsableStmt n, Void arg) {
1932
1932
* and finally to {@link DefaultImportOrderingStrategy}, and out them in groups, seperated by
1933
1933
* newlines.
1934
1934
*/
1935
- private void printImports (NodeList <ImportDeclaration > imports , Void arg ) {
1935
+ protected void printImports (NodeList <ImportDeclaration > imports , Void arg ) {
1936
1936
ImportOrderingStrategy strategy = new DefaultImportOrderingStrategy ();
1937
1937
// Get Import strategy from configuration
1938
1938
Optional <ConfigurationOption > optionalStrategy = getOption (ConfigOption .SORT_IMPORTS_STRATEGY );
@@ -1960,7 +1960,7 @@ private void printImports(NodeList<ImportDeclaration> imports, Void arg) {
1960
1960
/**
1961
1961
* Print all orphaned comments coming right before {@code node}.
1962
1962
*/
1963
- private void printOrphanCommentsBeforeThisChildNode (final Node node ) {
1963
+ protected void printOrphanCommentsBeforeThisChildNode (final Node node ) {
1964
1964
if (!getOption (ConfigOption .PRINT_COMMENTS ).isPresent ()) return ;
1965
1965
if (node instanceof Comment ) return ;
1966
1966
Node parent = node .getParentNode ().orElse (null );
@@ -1995,7 +1995,7 @@ private void printOrphanCommentsBeforeThisChildNode(final Node node) {
1995
1995
/**
1996
1996
* Print all orphan comments coming at the end of the given {@code node}.
1997
1997
*/
1998
- private void printOrphanCommentsEnding (final Node node ) {
1998
+ protected void printOrphanCommentsEnding (final Node node ) {
1999
1999
if (!getOption (ConfigOption .PRINT_COMMENTS ).isPresent ()) return ;
2000
2000
List <Node > everything = new ArrayList <>(node .getChildNodes ());
2001
2001
sortByBeginPosition (everything );
@@ -2033,7 +2033,7 @@ private void unindentIf(boolean expr) {
2033
2033
/**
2034
2034
* Get the value of a given configuration option.
2035
2035
*/
2036
- private Optional <ConfigurationOption > getOption (ConfigOption cOption ) {
2036
+ protected Optional <ConfigurationOption > getOption (ConfigOption cOption ) {
2037
2037
return configuration .get (new DefaultConfigurationOption (cOption ));
2038
2038
}
2039
2039
}
0 commit comments