author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:50:51 +0200 | |
changeset 8 | 82ff02d7f861 |
child 133 | 50bf1b976c0d |
permissions | -rw-r--r-- |
jtulach@8 | 1 |
package impl; |
jtulach@8 | 2 |
import api.API; |
jtulach@8 | 3 |
|
jtulach@8 | 4 |
// BEGIN: theory.binary.constants.impl |
jtulach@8 | 5 |
public class Impl extends API { |
jtulach@8 | 6 |
protected void init(int version) throws IllegalStateException { |
jtulach@8 | 7 |
if (version != API.VERSION) { |
jtulach@8 | 8 |
throw new IllegalStateException("Not the right API version error!"); |
jtulach@8 | 9 |
} |
jtulach@8 | 10 |
} |
jtulach@8 | 11 |
// END: theory.binary.constants.impl |
jtulach@8 | 12 |
|
jtulach@8 | 13 |
public static void main(String[] args) { |
jtulach@8 | 14 |
System.err.println("main expects version: " + API.VERSION); |
jtulach@8 | 15 |
new Impl(); |
jtulach@8 | 16 |
System.err.println("done for version: " + API.VERSION); |
jtulach@8 | 17 |
} |
jtulach@8 | 18 |
} |