Skip to content

Commit

Permalink
Cleanup, remember to use 'final' visibility modifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Aug 3, 2023
1 parent 837c1fb commit cbd5cd0
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.moduleCoordinates
import static com.autonomousapps.AdviceHelper.projectAdviceForDependencies

class AllVariantsIgnoredProject extends AbstractVariantProject {
final class AllVariantsIgnoredProject extends AbstractVariantProject {

AllVariantsIgnoredProject(String agpVersion) {
super(agpVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.moduleCoordinates
import static com.autonomousapps.AdviceHelper.projectAdviceForDependencies

class AllVariantsProject extends AbstractVariantProject {
final class AllVariantsProject extends AbstractVariantProject {

AllVariantsProject(String agpVersion) {
super(agpVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.*
import static com.autonomousapps.kit.Dependency.*

class AndroidTestSourceProject extends AbstractAndroidProject {
final class AndroidTestSourceProject extends AbstractAndroidProject {

final GradleProject gradleProject
private final String agpVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.moduleCoordinates
import static com.autonomousapps.AdviceHelper.projectAdviceForDependencies

class DebugVariantIgnoredProject extends AbstractVariantProject {
final class DebugVariantIgnoredProject extends AbstractVariantProject {

DebugVariantIgnoredProject(String agpVersion) {
super(agpVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.moduleCoordinates
import static com.autonomousapps.AdviceHelper.projectAdviceForDependencies

class ReleaseVariantIgnoredProject extends AbstractVariantProject {
final class ReleaseVariantIgnoredProject extends AbstractVariantProject {

ReleaseVariantIgnoredProject(String agpVersion) {
super(agpVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import static com.autonomousapps.kit.Dependency.project
*
* The only reference to the lib2 project is through an ID that lib2 provides.
*/
class ResProject extends AbstractAndroidProject {
final class ResProject extends AbstractAndroidProject {

final GradleProject gradleProject
private final String agpVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.*
import static com.autonomousapps.kit.Dependency.*

class TestSourceProject extends AbstractAndroidProject {
final class TestSourceProject extends AbstractAndroidProject {

final GradleProject gradleProject
private final String agpVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import static com.autonomousapps.AdviceHelper.*
import static com.autonomousapps.kit.Dependency.kotlinStdLib
import static com.autonomousapps.kit.Dependency.project

class AbiGenericsProject extends AbstractProject {
final class AbiGenericsProject extends AbstractProject {

enum SourceKind {
CLASS, METHOD, FIELD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.*
import static com.autonomousapps.kit.Dependency.project

class AbiInterfaceProject extends AbstractProject {
final class AbiInterfaceProject extends AbstractProject {

final GradleProject gradleProject
private final abstractProject = project('implementation', ':abstract')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.nio.file.Files
import static com.autonomousapps.kit.Dependency.okHttp
import static com.autonomousapps.kit.Dependency.okio

class FindDeclarationsProject extends AbstractProject {
final class FindDeclarationsProject extends AbstractProject {

final name = 'proj'
final GradleProject gradleProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,4 +954,3 @@ private fun Project.shouldAnalyzeSourceSetForProject(sourceSetName: String, proj
return project.getExtension().issueHandler.shouldAnalyzeSourceSet(sourceSetName, projectPath)
&& (project.shouldAnalyzeTests() || sourceSetName != SourceSet.TEST_SOURCE_SET_NAME)
}

0 comments on commit cbd5cd0

Please sign in to comment.