Skip to content

Commit

Permalink
Bump io.takari:takari from 51 to 54
Browse files Browse the repository at this point in the history
This involves full reformat of the sources using spotless
maven pluging. If this commit enters master, it MUST
be followed by another one that sets this commit
hash as "git blame ignore".

No code change, just reformat of Java, Scala and Kotlin source.
  • Loading branch information
cstamas committed May 24, 2024
1 parent e9c3211 commit 006909c
Show file tree
Hide file tree
Showing 282 changed files with 17,758 additions and 18,888 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import javax.inject.Named;
import javax.inject.Singleton;

import org.sonatype.maven.polyglot.mapping.MappingSupport;

/**
Expand All @@ -18,13 +17,13 @@
* @author dhanji@gmail.com (Dhanji R. Prasanna)
*/
@Singleton
@Named( "atom" )
@Named("atom")
public class AtomMapping extends MappingSupport {
public AtomMapping() {
super("atom");
setPomNames("pom.atom");
setAcceptLocationExtensions(".atom");
setAcceptOptionKeys("atom:4.0.0");
setPriority(1);
}
}
public AtomMapping() {
super("atom");
setPomNames("pom.atom");
setAcceptLocationExtensions(".atom");
setAcceptOptionKeys("atom:4.0.0");
setPriority(1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
*/
package org.sonatype.maven.polyglot.atom;

import javax.inject.Named;
import javax.inject.Singleton;

import java.io.IOException;
import java.io.Reader;
import java.util.Map;

import javax.inject.Named;
import javax.inject.Singleton;
import org.apache.maven.model.Model;
import org.apache.maven.model.building.ModelProcessor;
import org.apache.maven.model.building.ModelSource;
Expand All @@ -25,18 +23,21 @@

/**
* Reads a <tt>pom.atom</tt> and transforms into a Maven {@link Model}.
*
*
* @author dhanji@gmail.com (Dhanji R. Prasanna)
*/
@Singleton
@Named( "atom" )
@Named("atom")
public class AtomModelReader extends ModelReaderSupport {

public Model read(final Reader input, final Map<String, ?> options) throws IOException {
assert input != null;
public Model read(final Reader input, final Map<String, ?> options) throws IOException {
assert input != null;

// Parse the token stream from our pom.atom configuration file.
Project project = new AtomParser((ModelSource)options.get(ModelProcessor.SOURCE), new Tokenizer(IOUtil.toString(input)).tokenize()).parse();
return project.toMavenModel();
}
// Parse the token stream from our pom.atom configuration file.
Project project = new AtomParser(
(ModelSource) options.get(ModelProcessor.SOURCE),
new Tokenizer(IOUtil.toString(input)).tokenize())
.parse();
return project.toMavenModel();
}
}
Loading

0 comments on commit 006909c

Please sign in to comment.