Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use spotless #8

Merged
merged 3 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright The Codehaus Foundation.

Expand All @@ -15,14 +14,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus</artifactId>
<version>10</version>
<version>13</version>
</parent>

<artifactId>plexus-xml</artifactId>
Expand Down Expand Up @@ -143,15 +141,17 @@ limitations under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<configuration>
<content>${project.reporting.outputDirectory}</content><!-- mono-module doesn't require site:stage -->
<content>${project.reporting.outputDirectory}</content>
<!-- mono-module doesn't require site:stage -->
</configuration>
<executions>
<execution>
<id>scm-publish</id>
<phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
<!-- deploy site with maven-scm-publish-plugin -->
<goals>
<goal>publish-scm</goal>
</goals>
<phase>site-deploy</phase>
</execution>
</executions>
</plugin>
Expand Down
17 changes: 6 additions & 11 deletions src/main/java/org/codehaus/plexus/util/xml/CompactXMLWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,18 @@
/**
*
*/
public class CompactXMLWriter
extends PrettyPrintXMLWriter
{
public class CompactXMLWriter extends PrettyPrintXMLWriter {

public CompactXMLWriter( PrintWriter writer )
{
super( writer );
public CompactXMLWriter(PrintWriter writer) {
super(writer);
}

public CompactXMLWriter( Writer writer )
{
super( writer );
public CompactXMLWriter(Writer writer) {
super(writer);
}

@Override
protected void endOfLine()
{
protected void endOfLine() {
// override parent: don't write anything at end of line
}
}
Loading