Skip to content

Commit

Permalink
OPENNLP-1595 Clear methods that are identical to their super methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mawiesne committed Jul 15, 2024
1 parent 0b856c5 commit 2f3ca80
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import opennlp.tools.tokenize.Tokenizer;
import opennlp.tools.util.ObjectStream;


public class TwentyNewsgroupSampleStream implements ObjectStream<DocumentSample> {

private final Tokenizer tokenizer;
Expand Down Expand Up @@ -66,7 +65,4 @@ public void reset() throws IOException, UnsupportedOperationException {
catFileTupleIterator = catFileMap.entrySet().iterator();
}

@Override
public void close() throws IOException {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ public NameSample read() throws IOException {
}
}

@Override
public void close() throws IOException {
samples.close();
}

@Override
public void reset() throws IOException, UnsupportedOperationException {
samples.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ public POSSample read() throws IOException {
}
}

@Override
public void close() throws IOException {
samples.close();
}

@Override
public void reset() throws IOException, UnsupportedOperationException {
samples.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ public SentenceSample read() throws IOException {
}
}

@Override
public void close() throws IOException {
samples.close();
}

@Override
public void reset() throws IOException, UnsupportedOperationException {
samples.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ public TokenSample read() throws IOException {
}
}

@Override
public void close() throws IOException {
samples.close();
}

@Override
public void reset() throws IOException, UnsupportedOperationException {
samples.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package opennlp.tools.ml.maxent;

import java.util.Arrays;
import java.util.Objects;

import opennlp.tools.ml.ArrayMath;
Expand Down Expand Up @@ -207,7 +206,7 @@ static double[] eval(Context[] context, float[] values, double[] prior,

@Override
public int hashCode() {
return Objects.hash(pmap, Arrays.hashCode(outcomeNames), evalParams, prior);
return super.hashCode();
}

@Override
Expand Down

0 comments on commit 2f3ca80

Please sign in to comment.