Skip to content

Commit

Permalink
Java7 leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
elucash committed Oct 6, 2023
1 parent c4597ef commit 34c76bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generator-fixture/src/samplegenerators/DoitProcessor.java
Expand Up @@ -24,7 +24,7 @@

@Metainf.Service
@Generator.SupportedAnnotations(Doit.class)
@SupportedSourceVersion(SourceVersion.RELEASE_7)
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class DoitProcessor extends AbstractGenerator {
@Override
protected void process() {
Expand Down
@@ -1,5 +1,5 @@
/*
Copyright 2014 Immutables Authors and Contributors
Copyright 2023 Immutables Authors and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -46,7 +46,7 @@
import org.parboiled.parserunners.ReportingParseRunner;
import org.parboiled.support.ParsingResult;

@SupportedSourceVersion(SourceVersion.RELEASE_7)
@SupportedSourceVersion(SourceVersion.RELEASE_8)
@Metainf.Service(javax.annotation.processing.Processor.class)
public final class Processor extends AbstractProcessor {

Expand Down
Expand Up @@ -27,6 +27,8 @@ public final class ClasspathAvailability {
private static final Map<String, Boolean> availableClasses =
Collections.synchronizedMap(new HashMap<String, Boolean>());

/** Java 8 is minimum requirement now */
@Deprecated
public boolean isJava8() {
SourceVersion sourceVersion = EnvironmentState.processing().getSourceVersion();
return sourceVersion.compareTo(SourceVersion.RELEASE_7) > 0;
Expand Down

0 comments on commit 34c76bd

Please sign in to comment.