Skip to content

Commit

Permalink
Add missing javadocs for classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed Jul 23, 2024
1 parent 99af4b5 commit dc77647
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/main/java/net/revelc/code/apilyzer/Apilyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -26,6 +26,9 @@
import net.revelc.code.apilyzer.problems.ProblemReporter;
import net.revelc.code.apilyzer.util.ClassUtils;

/**
* The entry point to this library.
*/
public class Apilyzer {

private final ProblemReporter problemReporter;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/revelc/code/apilyzer/PatternSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import java.util.regex.Pattern;
import java.util.stream.Collectors;

/**
* A set of patterns to match classes on the class path.
*/
class PatternSet {
private final List<Pattern> patterns;

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/revelc/code/apilyzer/PublicApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -24,6 +24,9 @@
import java.util.stream.Stream;
import net.revelc.code.apilyzer.util.ClassUtils;

/**
* An object representing the public API for the analysis target.
*/
public class PublicApi {

/**
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/revelc/code/apilyzer/problems/Problem.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -14,6 +14,9 @@

package net.revelc.code.apilyzer.problems;

/**
* An object type that represents a problem to be reported.
*/
public class Problem {

public final String problemType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -18,6 +18,9 @@
import java.lang.reflect.Method;
import java.util.function.Consumer;

/**
* A utility for reporting the various problem types.
*/
public class ProblemReporter {

private Consumer<Problem> consumer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -14,6 +14,9 @@

package net.revelc.code.apilyzer.problems;

/**
* An enumeration of problem types that can be identified and reported.
*/
public enum ProblemType {

/**
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/revelc/code/apilyzer/util/ClassUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -28,6 +28,9 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
* Some basic static utilities for searching and processing the class path.
*/
public class ClassUtils {

private ClassUtils() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -14,6 +14,9 @@

package net.revelc.code.apilyzer.maven.plugin;

/**
* A basic test template.
*/
public class AnalyzeMojoTest {

}

0 comments on commit dc77647

Please sign in to comment.