This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| retrofit [2017/06/22 13:05] – ledyx | retrofit [2021/02/07 05:49] (current) – old revision restored (2017/06/22 14:06) ledyx | ||
|---|---|---|---|
| Line 52: | Line 52: | ||
| if(service == null) { | if(service == null) { | ||
| if(!restfulInterface.isAnnotationPresent(URL.class)) | if(!restfulInterface.isAnnotationPresent(URL.class)) | ||
| - | throw new Exception(" | + | throw new Exception(" |
| URL urlAnnotation = restfulInterface.getDeclaredAnnotation(URL.class); | URL urlAnnotation = restfulInterface.getDeclaredAnnotation(URL.class); | ||
| Line 58: | Line 58: | ||
| String url = urlAnnotation.value(); | String url = urlAnnotation.value(); | ||
| if(url.length() <= 0 || !url.substring(0, | if(url.length() <= 0 || !url.substring(0, | ||
| - | throw new Exception(" | + | throw new Exception(" |
| boolean isUnwrapRootValue = urlAnnotation.isUnwrappedRoot(); | boolean isUnwrapRootValue = urlAnnotation.isUnwrappedRoot(); | ||