Skip to content
Browse files

Re-order some declarations.

  • Loading branch information...
1 parent d044be3 commit c1ca8e44cec7c9453e8c2e82be98310be6ca773b @Kami Kami committed Feb 23, 2013
View
8 src/main/java/com/rackspacecloud/client/service_registry/clients/EventsClient.java
@@ -59,20 +59,18 @@ public EventsClient(AuthClient authClient) {
*/
private List<BaseEvent> parseEvents(List<Event> events) throws Exception {
String type;
- List<BaseEvent> result = new ArrayList<BaseEvent>();
-
EventPayload payload;
+ BaseEvent event;
+
String configurationValueId;
ConfigurationValue oldValue, newValue;
- BaseEvent event;
+ List<BaseEvent> result = new ArrayList<BaseEvent>();
for (Event rawEvent : events) {
type = rawEvent.getType();
payload = rawEvent.getPayload();
- event = null;
-
if (!VALID_EVENT_TYPES.contains(type)) {
throw new Exception("Unrecognized event type: " + type);
}

0 comments on commit c1ca8e4

Please sign in to comment.
Something went wrong with that request. Please try again.