Skip to content

Fixes handling of unknown PDAnnotation types.#2778

Merged
LinusDietz merged 3 commits into
masterfrom
fix-2777
Apr 23, 2017
Merged

Fixes handling of unknown PDAnnotation types.#2778
LinusDietz merged 3 commits into
masterfrom
fix-2777

Conversation

@LinusDietz

Copy link
Copy Markdown
Member

refs. #2777

@LinusDietz LinusDietz added component: external-files status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Apr 21, 2017
@LinusDietz LinusDietz requested a review from tobiasdiez April 21, 2017 13:19
* @param annotation the raw PDAnnotation
* @return The determined FileAnnotationType
*/
public static FileAnnotationType parseFileAnnotationType(PDAnnotation annotation) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we normally called such methods simply parse since the rest should be clear from the class name. But you can leave it also like that.

@koppor koppor removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 21, 2017
@koppor

koppor commented Apr 21, 2017

Copy link
Copy Markdown
Member

Please change method name, resolve the conflict and then merge.

NONE("None");

private final String name;
private static final Log LOGGER = LogFactory.getLog(FileAnnotationType.class);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put the logger attribute directly under the enum declaration.


private final String name;
private static final Log LOGGER = LogFactory.getLog(FileAnnotationType.class);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obsolete line?!

@LinusDietz LinusDietz merged commit d8e2936 into master Apr 23, 2017
@LinusDietz LinusDietz deleted the fix-2777 branch April 23, 2017 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants