mirror of
https://github.com/sismics/docs.git
synced 2024-11-16 11:17:57 +01:00
Cleanup javadoc
This commit is contained in:
parent
fd3597b3d1
commit
e924ac2dd8
@ -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<String> 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user