Skip to content

Commit

Permalink
Corrected typo in DynamicFactory javadoc and made the interfaces static
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay authored and egonw committed Dec 13, 2012
1 parent 4c0bcd1 commit b314703
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/org/openscience/cdk/DynamicFactory.java
Expand Up @@ -604,7 +604,7 @@ private <T> Creator<T> get(ConstructorKey key) {


/**
* Find a constructor those parameters are assignable from the provided
* Find a constructor whose parameters are assignable from the provided
* key.
*
* @param key a key to find the constructor for
Expand Down Expand Up @@ -1094,7 +1094,7 @@ public Class<?>[] getInterfaces(Class<?> c) {
* implements. This interface is constructor injectable allowing us to test
* the registration using this method.
*/
public interface InterfaceProvider {
public static interface InterfaceProvider {

/**
* Access the interfaces for a given class
Expand All @@ -1111,7 +1111,7 @@ public interface InterfaceProvider {
*
* @param <T>
*/
public interface CreationModifier<T> {
public static interface CreationModifier<T> {
public void modify(T instance);
}

Expand Down Expand Up @@ -1166,7 +1166,7 @@ public Class<T> getDeclaringClass() {
*
* @param <T> the type of object that will be created
*/
public interface Creator<T> {
public static interface Creator<T> {

/**
* Create a new instance with the provided object parameters.
Expand Down
2 changes: 1 addition & 1 deletion src/test/org/openscience/cdk/DynamicFactoryTest.java
Expand Up @@ -183,7 +183,7 @@ public void testRegister_Constructor_Modifier() throws Exception {
DynamicFactoryTestMock.class.getConstructor(String.class),
modifier));

assertNotNull(factory.ofClass(ICDKObject.class));
assertNotNull(factory.ofClass(ICDKObject.class, "empty"));


// verify the modifier was invoked once
Expand Down

0 comments on commit b314703

Please sign in to comment.