diff --git a/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/impl/FileItem.java b/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/impl/FileItem.java index d216a3f..338cafd 100644 --- a/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/impl/FileItem.java +++ b/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/impl/FileItem.java @@ -8,7 +8,6 @@ import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; -import org.gcube.common.storagehubwrapper.shared.tohl.exceptions.InternalErrorException; import org.gcube.common.storagehubwrapper.shared.tohl.items.FileItemType; import org.gcube.common.storagehubwrapper.shared.tohl.items.WorkspaceVersion; @@ -43,7 +42,6 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh @Override public FileItemType getFileItemType() { - // TODO Auto-generated method stub return fileItemType; } @@ -51,10 +49,7 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh * @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.File#getSize() */ @Override - public Long getSize() - throws InternalErrorException { - - // TODO Auto-generated method stub + public Long getSize() { return size; } @@ -62,10 +57,7 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh * @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.File#getMimeType() */ @Override - public String getMimeType() - throws InternalErrorException { - - // TODO Auto-generated method stub + public String getMimeType() { return mimeType; } @@ -73,10 +65,8 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh * @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.FileItem#getCurrentVersion() */ @Override - public WorkspaceVersion getCurrentVersion() - throws InternalErrorException { + public WorkspaceVersion getCurrentVersion() { - // TODO Auto-generated method stub return currentVersion; } diff --git a/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/items/File.java b/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/items/File.java index 3ac72ab..bb4f879 100644 --- a/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/items/File.java +++ b/src/main/java/org/gcube/common/storagehubwrapper/shared/tohl/items/File.java @@ -28,7 +28,7 @@ public interface File { * @return the size * @throws InternalErrorException the internal error exception */ - public Long getSize() throws InternalErrorException; + public Long getSize(); /** * The folder myme type. @@ -36,7 +36,7 @@ public interface File { * @return the myme type * @throws InternalErrorException the internal error exception */ - public String getMimeType() throws InternalErrorException; + public String getMimeType(); }