develop.uap-core.de/git
/
petrinet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renames PetriNet to Petrinet and uses the parser as a resource in Main
[petrinet.git]
/
src
/
main
/
java
/
de
/
yasc
/
example
/
petrinet
/
PetrinetParser.java
diff --git
a/src/main/java/de/yasc/example/petrinet/PetrinetParser.java
b/src/main/java/de/yasc/example/petrinet/PetrinetParser.java
index
9a70a42
..
21d63a8
100644
(file)
--- a/
src/main/java/de/yasc/example/petrinet/PetrinetParser.java
+++ b/
src/main/java/de/yasc/example/petrinet/PetrinetParser.java
@@
-112,8
+112,8
@@
public final class PetrinetParser implements AutoCloseable {
}
}
}
}
- public Petri
N
et read() throws IOException {
- Petri
N
et result = null;
+ public Petri
n
et read() throws IOException {
+ Petri
n
et result = null;
String input;
int line = 0;
String input;
int line = 0;
@@
-125,7
+125,7
@@
public final class PetrinetParser implements AutoCloseable {
case COMMENT: break;
case PLACES:
if (result == null) {
case COMMENT: break;
case PLACES:
if (result == null) {
- result = new Petri
N
et(parsedLine.val0);
+ result = new Petri
n
et(parsedLine.val0);
} else {
throw new IOException("places command must occur once");
}
} else {
throw new IOException("places command must occur once");
}
@@
-154,7
+154,7
@@
public final class PetrinetParser implements AutoCloseable {
}
@Override
}
@Override
- public void close() throws Exception {
+ public void close() throws
IO
Exception {
reader.close();
}
}
reader.close();
}
}