Skip to content

Commit 34c76bd

Browse files
committed
Java7 leftovers
1 parent c4597ef commit 34c76bd

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎generator-fixture/src/samplegenerators/DoitProcessor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
@Metainf.Service
2626
@Generator.SupportedAnnotations(Doit.class)
27-
@SupportedSourceVersion(SourceVersion.RELEASE_7)
27+
@SupportedSourceVersion(SourceVersion.RELEASE_8)
2828
public class DoitProcessor extends AbstractGenerator {
2929
@Override
3030
protected void process() {

‎generator-processor/src/org/immutables/generator/processor/Processor.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2014 Immutables Authors and Contributors
2+
Copyright 2023 Immutables Authors and Contributors
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@
4646
import org.parboiled.parserunners.ReportingParseRunner;
4747
import org.parboiled.support.ParsingResult;
4848

49-
@SupportedSourceVersion(SourceVersion.RELEASE_7)
49+
@SupportedSourceVersion(SourceVersion.RELEASE_8)
5050
@Metainf.Service(javax.annotation.processing.Processor.class)
5151
public final class Processor extends AbstractProcessor {
5252

‎generator/src/org/immutables/generator/ClasspathAvailability.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public final class ClasspathAvailability {
2727
private static final Map<String, Boolean> availableClasses =
2828
Collections.synchronizedMap(new HashMap<String, Boolean>());
2929

30+
/** Java 8 is minimum requirement now */
31+
@Deprecated
3032
public boolean isJava8() {
3133
SourceVersion sourceVersion = EnvironmentState.processing().getSourceVersion();
3234
return sourceVersion.compareTo(SourceVersion.RELEASE_7) > 0;

0 commit comments

Comments
 (0)