Aufg. X vs. Java Conventions
2003-06-17 16:34
Viciarg
http://java.sun.com/j2se/1.4.1/docs/guide/lang/assert.html#usage says:
"Do not use assertions for argument checking in public methods."
de.unihamburg.informatik.p2.kinokartenverkauf.uhrzeit.java has:
???
Na bin ich froh, daß wir in P2 das Programmieren lernen, sonst würde ich noch darüber, jede Zeile zu kommentieren, total alle Konventionen ignorieren *grrrrrrrrrr*
"Do not use assertions for argument checking in public methods."
de.unihamburg.informatik.p2.kinokartenverkauf.uhrzeit.java has:
public static Uhrzeit fromString(String stringRepr)
{
assert stringRepr != null : "Vorbedingung verletzt: stringRepr != null";
...
???
Na bin ich froh, daß wir in P2 das Programmieren lernen, sonst würde ich noch darüber, jede Zeile zu kommentieren, total alle Konventionen ignorieren *grrrrrrrrrr*