From 6802c6aa938bab0f09a12cf6755cd7fe7f21b9c0 Mon Sep 17 00:00:00 2001 From: Szymon Sasin Date: Wed, 10 Jul 2024 21:07:53 +0300 Subject: [PATCH] GH-86 Fix warning: 'Class is exposed outside of its visibility scope' --- .../main/java/com/mbed/coap/packet/BasicHeaderOptions.java | 4 ++-- .../src/main/java/com/mbed/coap/packet/HeaderOptions.java | 4 ++-- .../java/com/mbed/coap/packet/SignallingHeaderOptions.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/coap-core/src/main/java/com/mbed/coap/packet/BasicHeaderOptions.java b/coap-core/src/main/java/com/mbed/coap/packet/BasicHeaderOptions.java index 79ddd072..869e946f 100644 --- a/coap-core/src/main/java/com/mbed/coap/packet/BasicHeaderOptions.java +++ b/coap-core/src/main/java/com/mbed/coap/packet/BasicHeaderOptions.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2024 java-coap contributors (https://github.com/open-coap/java-coap) * Copyright (C) 2011-2021 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); @@ -186,7 +186,7 @@ public final boolean put(int optionNumber, Opaque data) { * * @return sorted list */ - protected List getRawOptions() { + List getRawOptions() { LinkedList list = new LinkedList<>(); if (contentFormat != null) { diff --git a/coap-core/src/main/java/com/mbed/coap/packet/HeaderOptions.java b/coap-core/src/main/java/com/mbed/coap/packet/HeaderOptions.java index 501a5454..e2e7c43c 100644 --- a/coap-core/src/main/java/com/mbed/coap/packet/HeaderOptions.java +++ b/coap-core/src/main/java/com/mbed/coap/packet/HeaderOptions.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2024 java-coap contributors (https://github.com/open-coap/java-coap) * Copyright (C) 2011-2021 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); @@ -70,7 +70,7 @@ public boolean parseOption(int type, Opaque data) { } @Override - protected List getRawOptions() { + List getRawOptions() { List l = super.getRawOptions(); if (observe != null) { if (observe == 0) { diff --git a/coap-tcp/src/main/java/com/mbed/coap/packet/SignallingHeaderOptions.java b/coap-tcp/src/main/java/com/mbed/coap/packet/SignallingHeaderOptions.java index cf9165c6..cc4cdfd9 100644 --- a/coap-tcp/src/main/java/com/mbed/coap/packet/SignallingHeaderOptions.java +++ b/coap-tcp/src/main/java/com/mbed/coap/packet/SignallingHeaderOptions.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2024 java-coap contributors (https://github.com/open-coap/java-coap) * Copyright (C) 2011-2021 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); @@ -54,7 +54,7 @@ public boolean parseOption(int type, Opaque data) { } @Override - protected List getRawOptions() { + List getRawOptions() { List l = super.getRawOptions(); if (signallingOption2 != null) { l.add(new RawOption(SIGN_OPTION_2, signallingOption2));