Skip to content

Commit 9e47cb2

Browse files
author
Vincent Potucek
committed
ReplaceObsoletes
1 parent 4f034ed commit 9e47cb2

File tree

2 files changed

+6
-130
lines changed

2 files changed

+6
-130
lines changed
Lines changed: 3 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,3 @@
1-
/*
2-
* Copyright 2021-2024 DiffPlug
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
package com.diffplug.spotless.pom;
17-
18-
import java.io.Serializable;
19-
20-
// Class and members must be public, otherwise we get failed to access class com.diffplug.spotless.pom.SortPomInternalState from class com.diffplug.spotless.pom.SortPomFormatterFunc (com.diffplug.spotless.pom.SortPomInternalState is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @682bd3c4; com.diffplug.spotless.pom.SortPomFormatterFunc is in unnamed module of loader com.diffplug.spotless.pom.DelegatingClassLoader @573284a5)
21-
public class SortPomCfg implements Serializable {
22-
private static final long serialVersionUID = 1L;
23-
24-
public String version = "4.0.0";
25-
26-
public String encoding = "UTF-8";
27-
28-
public String lineSeparator = System.getProperty("line.separator");
29-
30-
public boolean expandEmptyElements = true;
31-
32-
public boolean spaceBeforeCloseEmptyElement = false;
33-
34-
public boolean keepBlankLines = true;
35-
36-
public boolean endWithNewline = true;
37-
38-
public int nrOfIndentSpace = 2;
39-
40-
public boolean indentBlankLines = false;
41-
42-
public boolean indentSchemaLocation = false;
43-
44-
public String indentAttribute = null;
45-
46-
public String predefinedSortOrder = "recommended_2008_06";
47-
48-
public boolean quiet = false;
49-
50-
public String sortOrderFile = null;
51-
52-
public String sortDependencies = null;
53-
54-
public String sortDependencyManagement = null;
55-
56-
public String sortDependencyExclusions = null;
57-
58-
public String sortPlugins = null;
59-
60-
public boolean sortProperties = false;
61-
62-
public boolean sortModules = false;
63-
64-
public boolean sortExecutions = false;
65-
}
1+
public class Test {
2+
public String lineSeparator = System.lineSeparator();
3+
}
Lines changed: 3 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,3 @@
1-
/*
2-
* Copyright 2021-2024 DiffPlug
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
package com.diffplug.spotless.pom;
17-
18-
import java.io.Serializable;
19-
20-
// Class and members must be public, otherwise we get failed to access class com.diffplug.spotless.pom.SortPomInternalState from class com.diffplug.spotless.pom.SortPomFormatterFunc (com.diffplug.spotless.pom.SortPomInternalState is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @682bd3c4; com.diffplug.spotless.pom.SortPomFormatterFunc is in unnamed module of loader com.diffplug.spotless.pom.DelegatingClassLoader @573284a5)
21-
public class SortPomCfg implements Serializable {
22-
private static final long serialVersionUID = 1L;
23-
24-
public String version = "4.0.0";
25-
26-
public String encoding = "UTF-8";
27-
28-
public String lineSeparator = System.getProperty("line.separator");
29-
30-
public boolean expandEmptyElements = true;
31-
32-
public boolean spaceBeforeCloseEmptyElement = false;
33-
34-
public boolean keepBlankLines = true;
35-
36-
public boolean endWithNewline = true;
37-
38-
public int nrOfIndentSpace = 2;
39-
40-
public boolean indentBlankLines = false;
41-
42-
public boolean indentSchemaLocation = false;
43-
44-
public String indentAttribute = null;
45-
46-
public String predefinedSortOrder = "recommended_2008_06";
47-
48-
public boolean quiet = false;
49-
50-
public String sortOrderFile = null;
51-
52-
public String sortDependencies = null;
53-
54-
public String sortDependencyManagement = null;
55-
56-
public String sortDependencyExclusions = null;
57-
58-
public String sortPlugins = null;
59-
60-
public boolean sortProperties = false;
61-
62-
public boolean sortModules = false;
63-
64-
public boolean sortExecutions = false;
65-
}
1+
public class Test {
2+
public String lineSeparator = System.getProperty("line.separator");
3+
}

0 commit comments

Comments
 (0)