Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Leemoonsoo committed Nov 26, 2014
1 parent d2e8de7 commit 666d67f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public static RepositorySystem newRepositorySystem() {
return locator.getService(RepositorySystem.class);
}

/**
* ManualWagonProvider
*/
public static class ManualWagonProvider implements WagonProvider {

public Wagon lookup(String roleHint) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,45 +75,45 @@ public void onMessage(WebSocket conn, String msg) {
LOG.info("RECEIVE << " + messagereceived.op);
/** Lets be elegant here */
switch (messagereceived.op) {
case LIST_NOTES:
broadcastNoteList();
break;
case GET_NOTE:
sendNote(conn, notebook, messagereceived);
break;
case NEW_NOTE:
createNote(conn, notebook);
break;
case DEL_NOTE:
removeNote(conn, notebook, messagereceived);
break;
case COMMIT_PARAGRAPH:
updateParagraph(conn, notebook, messagereceived);
break;
case RUN_PARAGRAPH:
runParagraph(conn, notebook, messagereceived);
break;
case CANCEL_PARAGRAPH:
cancelParagraph(conn, notebook, messagereceived);
break;
case MOVE_PARAGRAPH:
moveParagraph(conn, notebook, messagereceived);
break;
case INSERT_PARAGRAPH:
insertParagraph(conn, notebook, messagereceived);
break;
case PARAGRAPH_REMOVE:
removeParagraph(conn, notebook, messagereceived);
break;
case NOTE_UPDATE:
updateNote(conn, notebook, messagereceived);
break;
case COMPLETION:
completion(conn, notebook, messagereceived);
break;
default:
broadcastNoteList();
break;
case LIST_NOTES:
broadcastNoteList();
break;
case GET_NOTE:
sendNote(conn, notebook, messagereceived);
break;
case NEW_NOTE:
createNote(conn, notebook);
break;
case DEL_NOTE:
removeNote(conn, notebook, messagereceived);
break;
case COMMIT_PARAGRAPH:
updateParagraph(conn, notebook, messagereceived);
break;
case RUN_PARAGRAPH:
runParagraph(conn, notebook, messagereceived);
break;
case CANCEL_PARAGRAPH:
cancelParagraph(conn, notebook, messagereceived);
break;
case MOVE_PARAGRAPH:
moveParagraph(conn, notebook, messagereceived);
break;
case INSERT_PARAGRAPH:
insertParagraph(conn, notebook, messagereceived);
break;
case PARAGRAPH_REMOVE:
removeParagraph(conn, notebook, messagereceived);
break;
case NOTE_UPDATE:
updateNote(conn, notebook, messagereceived);
break;
case COMPLETION:
completion(conn, notebook, messagereceived);
break;
default:
broadcastNoteList();
break;
}
} catch (Exception e) {
LOG.error("Can't handle message", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* Generate Tiny ID.
Expand All @@ -14,8 +12,8 @@
*/
public class IdHashes {
public static final char[] DICTIONARY = new char[] {'1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U',
'V', 'W', 'X', 'Y', 'Z'};
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U',
'V', 'W', 'X', 'Y', 'Z'};

/**
* encodes the given string into the base of the dictionary provided in the constructor.
Expand Down

0 comments on commit 666d67f

Please sign in to comment.