Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos #461

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Using Reflections you can query for example:
* Resources found in classpath
And more...

*Reflections was written in the spirit of [Scannotations](http://bill.burkecentral.com/2008/01/14/scanning-java-annotations-at-runtime/) library*
Copy link

Choose a reason for hiding this comment

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

this should stay like it is. Because it's about the one single library named "Reflections" and not about multiple reflections.

*Reflections were written in the spirit of [Scannotations](http://bill.burkecentral.com/2008/01/14/scanning-java-annotations-at-runtime/) library*

## Usage
Add Reflections dependency to your project:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/reflections/Reflections.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public Set<Class<?>> getTypesAnnotatedWith(Class<? extends Annotation> annotatio
/**
* get types annotated with the given {@code annotation}, both classes and annotations
* <p>{@link java.lang.annotation.Inherited} is honored according to the given {@code honorInherited}.
* <p>when honoring @Inherited, meta-annotation should only effect annotated super classes and subtypes
* <p>when honoring @Inherited, meta-annotation should only affect annotated super classes and subtypes
* <p>when not honoring @Inherited, meta annotation effects all subtypes, including annotations interfaces and classes
* <p><i>Note that this (@Inherited) meta-annotation type has no effect if the annotated type is used for anything other then a class.
* Also, this meta-annotation causes annotations to be inherited only from superclasses; annotations on implemented interfaces have no effect.</i>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/reflections/serializers/Serializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/** de/serialization for {@link org.reflections.Reflections} instance metadata
* <p>see {@link XmlSerializer}, {@link JsonSerializer}, {@link JavaCodeSerializer} */
public interface Serializer {
/** reads the input stream into a new Reflections instance, populating it's store */
/** reads the input stream into a new Reflections instance, populating its store */
Reflections read(InputStream inputStream);

/** saves a Reflections instance into the given filename */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/reflections/util/ClasspathHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static ClassLoader[] classLoaders(ClassLoader... classLoaders) {
* If the optional {@link ClassLoader}s are not specified, then both {@link #contextClassLoader()}
* and {@link #staticClassLoader()} are used for {@link ClassLoader#getResources(String)}.
* <p>
* The returned URLs retainsthe order of the given {@code classLoaders}.
* The returned URLs retains the order of the given {@code classLoaders}.
*
* @return the collection of URLs, not null
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/reflections/vfs/Vfs.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public interface File {
InputStream openInputStream() throws IOException;
}

/** a matcher and factory for a url */
/** a matcher and factory for an url */
public interface UrlType {
boolean matches(URL url) throws Exception;
Dir createDir(URL url) throws Exception;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ public class ReflectionsExpandSupertypesTest {
public interface ExpandTestModel {
interface NotScanned {
@Retention(RetentionPolicy.RUNTIME)
@interface MetaAnnotation { } // outside of scanned scope
@interface MetaAnnotation { } // outside scanned scope

@Retention(RetentionPolicy.RUNTIME)
@Inherited
@MetaAnnotation
@interface TestAnnotation { } // outside of scanned scope, but immediate annotation
@interface TestAnnotation { } // outside scanned scope, but immediate annotation

interface BaseInterface { } // outside of scanned scope
interface BaseInterface { } // outside scanned scope

@TestAnnotation
class BaseClass implements BaseInterface { } // outside of scanned scope, but immediate supertype
class BaseClass implements BaseInterface { } // outside scanned scope, but immediate supertype
}

interface Scanned {
Expand Down