Skip to content

Commit 7495591

Browse files
committed
updated dependencies and minor refactoring
1 parent 004b6c9 commit 7495591

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

pom.xml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<id>raydac</id>
3030
<name>Igor Maznitsa</name>
3131
<email>rrg4400@gmail.com</email>
32-
<url>http://www.igormaznitsa.com</url>
33-
<timezone>+4</timezone>
32+
<url>https://www.igormaznitsa.com</url>
33+
<timezone>+3</timezone>
3434
<roles>
3535
<role>Developer</role>
3636
</roles>
@@ -64,19 +64,19 @@
6464
<dependency>
6565
<groupId>org.junit.jupiter</groupId>
6666
<artifactId>junit-jupiter-api</artifactId>
67-
<version>5.5.1</version>
67+
<version>5.10.0</version>
6868
<scope>test</scope>
6969
</dependency>
7070
<dependency>
7171
<groupId>org.junit.jupiter</groupId>
7272
<artifactId>junit-jupiter-engine</artifactId>
73-
<version>5.5.1</version>
73+
<version>5.10.0</version>
7474
<scope>test</scope>
7575
</dependency>
7676
<dependency>
7777
<groupId>org.mockito</groupId>
7878
<artifactId>mockito-core</artifactId>
79-
<version>3.0.0</version>
79+
<version>5.5.0</version>
8080
<scope>test</scope>
8181
</dependency>
8282
</dependencies>
@@ -89,7 +89,7 @@
8989
<plugin>
9090
<groupId>org.apache.maven.plugins</groupId>
9191
<artifactId>maven-assembly-plugin</artifactId>
92-
<version>3.3.0</version>
92+
<version>3.6.0</version>
9393
<configuration>
9494
<descriptors>
9595
<descriptor>src/assemble/distribution.xml</descriptor>
@@ -126,7 +126,7 @@
126126
<plugin>
127127
<groupId>org.apache.maven.plugins</groupId>
128128
<artifactId>maven-source-plugin</artifactId>
129-
<version>3.2.1</version>
129+
<version>3.3.0</version>
130130
<executions>
131131
<execution>
132132
<id>generate-sources</id>
@@ -140,7 +140,7 @@
140140
<plugin>
141141
<groupId>org.apache.maven.plugins</groupId>
142142
<artifactId>maven-javadoc-plugin</artifactId>
143-
<version>3.2.0</version>
143+
<version>3.5.0</version>
144144
<configuration>
145145
<failOnError>true</failOnError>
146146
<show>protected</show>
@@ -160,7 +160,7 @@
160160
<plugin>
161161
<groupId>org.apache.maven.plugins</groupId>
162162
<artifactId>maven-gpg-plugin</artifactId>
163-
<version>3.0.1</version>
163+
<version>3.1.0</version>
164164
<executions>
165165
<execution>
166166
<id>sign-artifacts</id>
@@ -181,9 +181,10 @@
181181
<plugin>
182182
<groupId>org.apache.maven.plugins</groupId>
183183
<artifactId>maven-compiler-plugin</artifactId>
184-
<version>3.8.1</version>
184+
<version>3.11.0</version>
185185
<configuration>
186186
<compilerArgument>-Xlint:all</compilerArgument>
187+
<release>8</release>
187188
<source>1.8</source>
188189
<target>1.8</target>
189190
<showDeprecation>true</showDeprecation>
@@ -194,7 +195,7 @@
194195
<plugin>
195196
<groupId>org.apache.maven.plugins</groupId>
196197
<artifactId>maven-jar-plugin</artifactId>
197-
<version>3.2.0</version>
198+
<version>3.3.0</version>
198199
<configuration>
199200
<archive>
200201
<manifestEntries>
@@ -206,13 +207,13 @@
206207

207208
<plugin>
208209
<artifactId>maven-surefire-plugin</artifactId>
209-
<version>3.0.0-M5</version>
210+
<version>3.1.2</version>
210211
</plugin>
211212

212213
<plugin>
213214
<groupId>org.codehaus.mojo</groupId>
214215
<artifactId>animal-sniffer-maven-plugin</artifactId>
215-
<version>1.20</version>
216+
<version>1.23</version>
216217
<executions>
217218
<execution>
218219
<id>ensure-java-1.8-class-library</id>

src/main/java/com/igormaznitsa/prologparser/PrologParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public abstract class PrologParser implements Iterable<PrologTerm>, Closeable {
106106

107107
public PrologParser(final Reader source, final ParserContext context) {
108108
this.context = context == null ? of(ParserContext.FLAG_NONE) : context;
109-
this.tokenizer = new Tokenizer(this, META_OP_MAP, requireNonNull(source));
110109
this.parserFlags = context == null ? FLAG_NONE : context.getFlags();
110+
this.tokenizer = new Tokenizer(this, META_OP_MAP, requireNonNull(source));
111111
}
112112

113113
public PrologParser autoCloseReader() {

src/main/java/com/igormaznitsa/prologparser/terms/PrologStruct.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public PrologStruct(
6060
final int line, final int pos
6161
) {
6262
this(functor, elements);
63-
setPos(pos);
64-
setLine(line);
63+
this.setPos(pos);
64+
this.setLine(line);
6565
}
6666

6767
public PrologStruct(final String text) {
@@ -99,8 +99,8 @@ protected PrologStruct(final PrologTerm functor, final int arity) {
9999

100100
protected PrologStruct(final PrologTerm functor, final int arity, final int line, final int pos) {
101101
this(functor, arity);
102-
setPos(pos);
103-
setLine(line);
102+
this.setPos(pos);
103+
this.setLine(line);
104104
}
105105

106106
private static PrologTerm assertFunctor(final PrologTerm functor) {

0 commit comments

Comments
 (0)