Skip to content

Commit

Permalink
Merge pull request #964 from hazendaz/nextup
Browse files Browse the repository at this point in the history
Replace single commans lang 3 usage with direct java usage
  • Loading branch information
hazendaz authored Feb 17, 2025
2 parents a8ec278 + d15c3a2 commit 4974b48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-resources</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/net/revelc/code/formatter/FormatterMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

import javax.inject.Inject;

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.model.Resource;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
Expand Down Expand Up @@ -404,7 +403,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {

final var startClock = System.nanoTime();

if (StringUtils.isEmpty(this.encoding)) {
if (this.encoding == null || this.encoding.length() == 0) {
this.encoding = Charset.defaultCharset().displayName();
this.getLog().warn("File encoding has not been set, using platform encoding (" + this.encoding
+ ") to format source files, i.e. build is platform dependent!");
Expand Down

0 comments on commit 4974b48

Please # to comment.