commit | 179f3775e340e29e56a644722a88fdcb4e7215ef | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Wed Feb 18 17:28:39 2015 +0900 |
committer | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Wed Feb 18 17:28:39 2015 +0900 |
tree | bac7261d936a126d742bba4f2a2c614488a37631 | |
parent | 36f79aa93b8cea4e7bdb143b20eff1aea94c0751 [diff] |
Fix boxing/unboxing to parse a primitive Change-Id: I83f6beac585f8b6b28a95080783e5ca51454fbfe
diff --git a/web/api/src/main/java/org/onosproject/rest/IntentsWebResource.java b/web/api/src/main/java/org/onosproject/rest/IntentsWebResource.java index 93b59eb..5d1c2f0 100644 --- a/web/api/src/main/java/org/onosproject/rest/IntentsWebResource.java +++ b/web/api/src/main/java/org/onosproject/rest/IntentsWebResource.java
@@ -70,7 +70,7 @@ Intent intent = get(IntentService.class).getIntent(Key.of(key, app)); if (intent == null) { intent = get(IntentService.class) - .getIntent(Key.of(Long.valueOf(key), app)); + .getIntent(Key.of(Long.parseLong(key), app)); } nullIsNotFound(intent, INTENT_NOT_FOUND);