Skip to content

Replace UniqueHashComponent with call to Plugin.Component #41

@sodre

Description

@sodre

/**
* The Plugin.Component class has a bug when the baseUrl fails to resolve uniquely.
* This fixes the bug by assigning the Class' hashCode instead of the Plugin level one.
*/
private static class UniqueHashComponent extends Plugin.Component {
final private int hashCode;
public UniqueHashComponent(Class<? extends Resource> resourceClass) throws MalformedURLException {
super(resourceClass);
hashCode = resourceClass.hashCode();
}
@Override
public int hashCode() {
return hashCode;
}
}

Before we do this, we need to:

  • File Issue with GateNLP Project.
  • Create PR if necessary.
  • Wait for PR to be merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions