Skip to content

Commit

Permalink
added @OverRide annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
BugHunterPhilosopher committed Mar 26, 2012
1 parent 5fccd1b commit 39241fb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,17 @@ public void initialize() {
}
}

public void visit(Block block) throws VoiceXTTException {
@Override
public void visit(Block block) throws VoiceXTTException {
scripting.set(block.getAttribute("name"), "true");
List<VoiceXmlNode> childs = block.getChilds();
for (VoiceXmlNode voiceXmlNode : childs) {
executor.execute(voiceXmlNode);
}
}

public void visit(Field field) throws VoiceXTTException {
@Override
public void visit(Field field) throws VoiceXTTException {
this.playPrompt();
String input = userInput.readData();
while (input == null ) {
Expand Down Expand Up @@ -115,23 +117,28 @@ private void playPrompt() throws VoiceXTTException {
return;
}

public void visit(Subdialog subdialog) {
@Override
public void visit(Subdialog subdialog) {
throw new RuntimeException("implement subdialog visit");
}

public void visit(Transfer transfer) {
@Override
public void visit(Transfer transfer) {
throw new RuntimeException("implement transfer visit");
}

public void visit(Record Record) {
@Override
public void visit(Record Record) {
throw new RuntimeException("implement Record visit");
}

public void visit(Initial Initial) {
@Override
public void visit(Initial Initial) {
throw new RuntimeException("implement Initial visit");
}

public void visit(com.sdiawara.voicextt.node.Object object) {
@Override
public void visit(com.sdiawara.voicextt.node.Object object) {
throw new RuntimeException("implement object visit");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public List<String> getPrompts() {
private UncaughtExceptionHandler getDefaultUncaughtExceptionHandler() {
return new UncaughtExceptionHandler() {

public void uncaughtException(Thread t, Throwable e) {
@Override
public void uncaughtException(Thread t, Throwable e) {
Throwable exception = e.getCause();
try {
if (exception instanceof GotoException) {
Expand Down
3 changes: 2 additions & 1 deletion voicextt/src/main/java/com/sdiawara/voicextt/Speaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public Speaker(UserInput userInput) {
this.userInput = userInput;
}

public synchronized void run() {
@Override
public synchronized void run() {
super.run();
userInput.setInput(utterance);
}
Expand Down

0 comments on commit 39241fb

Please sign in to comment.