Skip to content

Commit

Permalink
ctf.tests: Don't use Java 17 APIs in o.e.tc.ctf.core.tests
Browse files Browse the repository at this point in the history
This allows to build with older target definitions e.g. e4.20 (2021-06)
that still uses Java 11.

Change-Id: Ib4ed44ad9bc306f2495d4d7847b4162cf320f3f7
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/203583
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
bhufmann committed Aug 8, 2023
1 parent eae996d commit d534de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -16,7 +16,6 @@
import static org.junit.Assert.assertNotNull;

import java.nio.ByteBuffer;
import java.util.HexFormat;

import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.ctf.core.CTFException;
Expand All @@ -38,7 +37,7 @@ public class BlobDeclarationTest {
private BlobDeclaration fixture;
private static final int LENGTH = 16;
@NonNull private static final String MEDIA_TYPE = "\"application/octet-stream\"";
private static final byte[] UUID_ARRAY = HexFormat.of().parseHex("2a6422d06cee11e08c08cb07d7b3a564");
private static final byte[] UUID_ARRAY = new byte[] { 0x2a, 0x64, 0x22, (byte) 0xd0, 0x6c, (byte) 0xee, 0x11, (byte) 0xe0, (byte) 0x8c, 0x08, (byte) 0xcb, 0x07, (byte) 0xd7, (byte) 0xb3, (byte) 0xa5, 0x64 };

/**
* Perform pre-test initialization.
Expand Down
Expand Up @@ -16,7 +16,6 @@
import static org.junit.Assert.assertNotNull;

import java.nio.ByteBuffer;
import java.util.HexFormat;

import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.ctf.core.CTFException;
Expand All @@ -38,7 +37,7 @@ public class BlobDefinitionTest {
private BlobDefinition fixture;
private static final int LENGTH = 16;
@NonNull private static final String MEDIA_TYPE = "\"application/octet-stream\"";
private static final byte[] UUID_ARRAY = HexFormat.of().parseHex("2a6422d06cee11e08c08cb07d7b3a564");
private static final byte[] UUID_ARRAY = new byte[] { 0x2a, 0x64, 0x22, (byte) 0xd0, 0x6c, (byte) 0xee, 0x11, (byte) 0xe0, (byte) 0x8c, 0x08, (byte) 0xcb, 0x07, (byte) 0xd7, (byte) 0xb3, (byte) 0xa5, 0x64 };

/**
* Perform pre-test initialization.
Expand Down

0 comments on commit d534de7

Please sign in to comment.