Skip to content

Commit

Permalink
Merge ../checker-framework-branch-master into inference-phase-two
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Nov 24, 2023
2 parents d8681c0 + b806aac commit b4e1b2a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 13 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,7 @@ void clone(url, directory, ignoreError, extraArgs = []){
args = [
'clone',
'-q',
'--depth',
'1',
'--filter=blob:none',
url,
file(directory).toPath().last()
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
boolean result();

/**
* Returns the Java expressions of type Optional<T> that are present after the method
* Returns the Java expressions of type {@code Optional<T>} that are present after the method
* returns the given result.
*
* @return the Java expressions of type Optional&lt;T&gt; that are present after the method
* returns the given result.
* @return the Java expressions of type {@code Optional<T>} that are present after the method
* returns the given result
* @checker_framework.manual #java-expressions-as-arguments Syntax of Java expressions
*/
String[] expression();
Expand Down
4 changes: 2 additions & 2 deletions checker/bin-devel/clone-related.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ if [ -d "$PLUME_SCRIPTS" ] ; then
(cd "$PLUME_SCRIPTS" && (git pull -q || true))
else
(cd "$CHECKERFRAMEWORK/checker/bin-devel" && \
(git clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git .plume-scripts || \
(sleep 1m && git clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git .plume-scripts)))
(git clone --filter=blob:none -q https://github.com/plume-lib/plume-scripts.git .plume-scripts || \
(sleep 1m && git clone --filter=blob:none -q https://github.com/plume-lib/plume-scripts.git .plume-scripts)))
fi

# Clone the annotated JDK into ../jdk .
Expand Down
2 changes: 1 addition & 1 deletion checker/bin-devel/wpi-plumelib/test-wpi-plumelib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test_wpi_plume_lib() {

rm -rf "$project"
# Try twice in case of network lossage
git clone -q --depth 1 "https://github.com/plume-lib/$project.git" || (sleep 60 && git clone -q --depth 1 "https://github.com/plume-lib/$project.git")
git clone -q --filter=blob:none "https://github.com/plume-lib/$project.git" || (sleep 60 && git clone -q --filter=blob:none "https://github.com/plume-lib/$project.git")

cd "$project" || (echo "can't run: cd $project" && exit 1)

Expand Down
11 changes: 11 additions & 0 deletions checker/tests/nullness/java21/Issue6290.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import java.util.Optional;

// @below-java17-jdk-skip-test
public class Issue6290 {

public Optional<String> test(String param) {
var first = Optional.ofNullable(param);
var second = first.isPresent() ? first : Optional.ofNullable(param);
return second;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class ArrayCreation extends JavaExpression {
* Creates an ArrayCreation object.
*
* @param type array type
* @param dimensions list of dimension expressions; a {code null} element means that there is no
* dimension expression for the given array level.
* @param dimensions list of dimension expressions; a {@code null} element means that there is no
* dimension expression for the given array level
* @param initializers list of initializer expressions
*/
public ArrayCreation(
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ check-labels:

export BIBINPUTS = $BIBINPUTS:.:plume-bib
plume-bib:
(git clone --depth 1 -q https://github.com/mernst/plume-bib.git || git clone --depth 1 -q https://github.com/mernst/plume-bib.git)
(git clone --filter=blob:none -q https://github.com/mernst/plume-bib.git || git clone --filter=blob:none -q https://github.com/mernst/plume-bib.git)
.PHONY: plume-bib-update
plume-bib-update: plume-bib
# Even if this command fails, it does not terminate the make job.
Expand Down
3 changes: 1 addition & 2 deletions framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ task cloneTypetoolsJdk() {
args = [
'clone',
'-q',
'--depth',
'1',
'--filter=blob:none',
'https://github.com/typetools/jdk.git',
'jdk'
]
Expand Down

0 comments on commit b4e1b2a

Please sign in to comment.