Skip to content

Commit

Permalink
fix(plc4j/knx): Fixed code where plc4j code was not Java 8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Feb 25, 2022
1 parent e4be2ce commit 7707680
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private String getProjectNumber(ZipFile zipFile) throws ZipException
//
// P-iiii/project.xml Created by user; contains the global data for project iiii (internal project ID, formatted as 4 hex digits).
Pattern pattern = Pattern.compile( "^P-[0-9A-F]{4}", Pattern.CASE_INSENSITIVE);
for ( var fileHeader : zipFile.getFileHeaders ( ) ) {
for (FileHeader fileHeader : zipFile.getFileHeaders ( ) ) {
Matcher matcher = pattern.matcher(fileHeader.getFileName());
if (matcher.find()) {
return matcher.group();
Expand Down

0 comments on commit 7707680

Please sign in to comment.