mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57: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();
|
DocumentDao documentDao = new DocumentDao();
|
||||||
Document documentDb = null;
|
Document documentDb;
|
||||||
try {
|
try {
|
||||||
documentDb = documentDao.getDocument(id, principal.getId());
|
documentDb = documentDao.getDocument(id, principal.getId());
|
||||||
} catch (NoResultException e) {
|
} catch (NoResultException e) {
|
||||||
@ -237,7 +237,7 @@ public class DocumentResource extends BaseResource {
|
|||||||
|
|
||||||
// Get the document
|
// Get the document
|
||||||
DocumentDao documentDao = new DocumentDao();
|
DocumentDao documentDao = new DocumentDao();
|
||||||
Document document = null;
|
Document document;
|
||||||
try {
|
try {
|
||||||
document = documentDao.getDocument(id, principal.getId());
|
document = documentDao.getDocument(id, principal.getId());
|
||||||
} catch (NoResultException e) {
|
} catch (NoResultException e) {
|
||||||
@ -267,8 +267,8 @@ public class DocumentResource extends BaseResource {
|
|||||||
/**
|
/**
|
||||||
* Update tags list on a document.
|
* Update tags list on a document.
|
||||||
*
|
*
|
||||||
* @param documentId
|
* @param documentId Document ID
|
||||||
* @param tagList
|
* @param tagList Tag ID list
|
||||||
* @throws JSONException
|
* @throws JSONException
|
||||||
*/
|
*/
|
||||||
private void updateTagList(String documentId, List<String> tagList) throws JSONException {
|
private void updateTagList(String documentId, List<String> tagList) throws JSONException {
|
||||||
@ -308,7 +308,7 @@ public class DocumentResource extends BaseResource {
|
|||||||
|
|
||||||
// Get the document
|
// Get the document
|
||||||
DocumentDao documentDao = new DocumentDao();
|
DocumentDao documentDao = new DocumentDao();
|
||||||
Document document = null;
|
Document document;
|
||||||
try {
|
try {
|
||||||
document = documentDao.getDocument(id, principal.getId());
|
document = documentDao.getDocument(id, principal.getId());
|
||||||
} catch (NoResultException e) {
|
} catch (NoResultException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user