diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java index 5c72254c..ca7c3ad7 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java @@ -63,7 +63,7 @@ public class DocumentResource extends BaseResource { } DocumentDao documentDao = new DocumentDao(); - Document documentDb = null; + Document documentDb; try { documentDb = documentDao.getDocument(id, principal.getId()); } catch (NoResultException e) { @@ -237,7 +237,7 @@ public class DocumentResource extends BaseResource { // Get the document DocumentDao documentDao = new DocumentDao(); - Document document = null; + Document document; try { document = documentDao.getDocument(id, principal.getId()); } catch (NoResultException e) { @@ -267,8 +267,8 @@ public class DocumentResource extends BaseResource { /** * Update tags list on a document. * - * @param documentId - * @param tagList + * @param documentId Document ID + * @param tagList Tag ID list * @throws JSONException */ private void updateTagList(String documentId, List tagList) throws JSONException { @@ -308,7 +308,7 @@ public class DocumentResource extends BaseResource { // Get the document DocumentDao documentDao = new DocumentDao(); - Document document = null; + Document document; try { document = documentDao.getDocument(id, principal.getId()); } catch (NoResultException e) {