From d30186882d7a428af48e638a776740eb1067f33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Thu, 14 Sep 2023 23:08:16 +0300 Subject: [PATCH] GitHub actions, README and license update & gson update (#60) * README.md update / GitHub action * License upgrade * README.md - note about Ubuntu localhost * lwm2m/pom.xml - upgrade gson to latest (2.10.1) This resolves also the raised Dependabot issue. - The package com.google.code.gson:gson before 2.8.9 is vulnerable to Deserialization of Untrusted Data via the writeReplace() method in internal classes, which may lead to denial of service attacks. * pom.xml - update Mycilla & add exclusions for CI * Remove CircleCI Remove the whole .circleCI, we'll use GitHub actions instead. --- .circleci/config.yml | 70 ------------------- .github/workflows/PR-check.yml | 58 +++++++++++++++ README.md | 29 +++++++- coap-core/pom.xml | 3 + .../java/com/mbed/coap/CoapConstants.java | 5 +- .../java/com/mbed/coap/client/CoapClient.java | 5 +- .../mbed/coap/client/CoapClientBuilder.java | 5 +- .../mbed/coap/client/CoapRequestTarget.java | 5 +- .../coap/client/ObservationHandlerImpl.java | 5 +- .../mbed/coap/client/ObservationListener.java | 5 +- .../mbed/coap/client/RegistrationManager.java | 5 +- .../mbed/coap/client/SyncRequestTarget.java | 5 +- .../coap/exception/CoapBlockException.java | 5 +- .../CoapBlockTooLargeEntityException.java | 5 +- .../coap/exception/CoapCodeException.java | 5 +- .../mbed/coap/exception/CoapException.java | 5 +- .../exception/CoapMessageFormatException.java | 5 +- .../CoapRequestEntityIncomplete.java | 5 +- .../exception/CoapRequestEntityTooLarge.java | 5 +- .../coap/exception/CoapTimeoutException.java | 5 +- .../exception/CoapUnknownOptionException.java | 5 +- .../ObservationNotEstablishedException.java | 5 +- .../ObservationTerminatedException.java | 5 +- .../TooManyRequestsForEndpointException.java | 5 +- .../com/mbed/coap/linkformat/LinkFormat.java | 5 +- .../coap/linkformat/LinkFormatBuilder.java | 5 +- .../java/com/mbed/coap/linkformat/PToken.java | 5 +- .../observe/AbstractObservableResource.java | 5 +- .../coap/observe/NotificationAckCallback.java | 5 +- .../observe/NotificationDeliveryListener.java | 5 +- .../NotificationDeliveryListenerNULL.java | 5 +- .../coap/observe/ObservationRelation.java | 5 +- .../observe/SimpleObservableResource.java | 5 +- .../mbed/coap/packet/BasicHeaderOptions.java | 5 +- .../com/mbed/coap/packet/BlockOption.java | 5 +- .../java/com/mbed/coap/packet/BlockSize.java | 5 +- .../java/com/mbed/coap/packet/CoapPacket.java | 5 +- .../coap/packet/CoapTcpPacketSerializer.java | 5 +- .../main/java/com/mbed/coap/packet/Code.java | 5 +- .../coap/packet/DataConvertingUtility.java | 5 +- .../com/mbed/coap/packet/HeaderOptions.java | 5 +- .../java/com/mbed/coap/packet/MediaTypes.java | 5 +- .../com/mbed/coap/packet/MessageType.java | 5 +- .../java/com/mbed/coap/packet/Method.java | 5 +- .../com/mbed/coap/packet/PacketUtils.java | 5 +- .../java/com/mbed/coap/packet/RawOption.java | 5 +- .../mbed/coap/packet/SignalingOptions.java | 5 +- .../mbed/coap/packet/StrictInputStream.java | 5 +- .../com/mbed/coap/server/CoapExchange.java | 5 +- .../com/mbed/coap/server/CoapHandler.java | 5 +- .../com/mbed/coap/server/CoapRequestId.java | 5 +- .../java/com/mbed/coap/server/CoapServer.java | 5 +- .../mbed/coap/server/CoapServerBuilder.java | 5 +- .../mbed/coap/server/CoapTcpCSMStorage.java | 5 +- .../coap/server/CoapTransactionCallback.java | 5 +- .../server/DuplicatedCoapMessageCallback.java | 5 +- .../mbed/coap/server/MessageIdSupplier.java | 5 +- .../coap/server/MessageIdSupplierImpl.java | 5 +- .../mbed/coap/server/ObservationHandler.java | 5 +- .../coap/server/ObservationIDGenerator.java | 5 +- .../java/com/mbed/coap/server/PutOnlyMap.java | 5 +- .../server/SimpleObservationIDGenerator.java | 5 +- .../coap/server/internal/BlockRequestId.java | 5 +- .../server/internal/BlockWiseCallback.java | 5 +- .../BlockWiseIncomingTransaction.java | 5 +- .../server/internal/BlockWiseTransfer.java | 5 +- .../server/internal/CoapExchangeImpl.java | 5 +- .../coap/server/internal/CoapMessaging.java | 5 +- .../server/internal/CoapRequestHandler.java | 5 +- .../server/internal/CoapServerBlocks.java | 5 +- .../coap/server/internal/CoapServerUtils.java | 5 +- .../mbed/coap/server/internal/CoapTcpCSM.java | 5 +- .../internal/CoapTcpCSMStorageImpl.java | 5 +- .../server/internal/CoapTcpMessaging.java | 5 +- .../coap/server/internal/CoapTransaction.java | 5 +- .../server/internal/CoapTransactionId.java | 5 +- .../server/internal/CoapUdpMessaging.java | 5 +- .../DefaultDuplicateDetectorCache.java | 5 +- .../server/internal/DelayedTransactionId.java | 5 +- .../internal/DelayedTransactionManager.java | 5 +- .../server/internal/DuplicationDetector.java | 5 +- .../coap/server/internal/ResourceLinks.java | 5 +- .../server/internal/TransactionManager.java | 5 +- .../server/internal/TransactionQueue.java | 5 +- .../mbed/coap/server/internal/UriMatcher.java | 5 +- .../mbed/coap/transmission/CoapTimeout.java | 5 +- .../mbed/coap/transmission/SingleTimeout.java | 5 +- .../transmission/TransmissionTimeout.java | 5 +- .../coap/transport/BlockingCoapTransport.java | 5 +- .../com/mbed/coap/transport/CoapReceiver.java | 5 +- .../mbed/coap/transport/CoapTransport.java | 5 +- .../coap/transport/InMemoryCoapTransport.java | 5 +- .../mbed/coap/transport/TransportContext.java | 5 +- .../coap/transport/TransportExecutors.java | 5 +- .../transport/javassl/CoapSerializer.java | 5 +- .../javassl/SSLSocketClientTransport.java | 5 +- .../javassl/SocketClientTransport.java | 5 +- .../coap/transport/udp/BlockingSocket.java | 5 +- .../transport/udp/DatagramSocketAdapter.java | 5 +- .../udp/DatagramSocketTransport.java | 5 +- .../java/com/mbed/coap/utils/Callback.java | 5 +- .../com/mbed/coap/utils/CoapResource.java | 5 +- .../coap/utils/FutureCallbackAdapter.java | 5 +- .../java/com/mbed/coap/utils/HexArray.java | 5 +- .../com/mbed/coap/utils/IpPortAddress.java | 5 +- .../mbed/coap/utils/ReadOnlyCoapResource.java | 5 +- .../com/mbed/coap/utils/RequestCallback.java | 5 +- .../main/java/com/mbed/coap/utils/Token.java | 5 +- .../com/mbed/coap/client/CoapClientTest.java | 5 +- .../coap/client/CoapRequestTargetTest.java | 5 +- .../coap/client/RegistrationManagerTest.java | 5 +- .../mbed/coap/linkformat/LinkFormatTest.java | 5 +- .../AbstractObservableResourceTest.java | 5 +- .../observe/SimpleObservableResourceTest.java | 5 +- .../com/mbed/coap/packet/BlockOptionTest.java | 5 +- .../com/mbed/coap/packet/BlockSizeTest.java | 5 +- .../com/mbed/coap/packet/CoapPacketTest.java | 5 +- .../mbed/coap/packet/CoapPacketTestBase.java | 5 +- .../coap/packet/CoapPacketToStringTest.java | 5 +- .../packet/CoapTcpPacketSerializerTest.java | 5 +- .../java/com/mbed/coap/packet/CodeTest.java | 5 +- .../packet/DataConvertingUtilityTest.java | 5 +- .../mbed/coap/packet/HeaderOptionTest.java | 5 +- .../com/mbed/coap/packet/MediaTypesTest.java | 5 +- .../com/mbed/coap/packet/RawOptionTest.java | 5 +- .../coap/packet/SignalingOptionsTest.java | 5 +- .../coap/packet/StrictInputStreamTest.java | 5 +- .../mbed/coap/server/CoapRequestIdTest.java | 5 +- .../coap/server/CoapServerBuilderTest.java | 5 +- .../com/mbed/coap/server/CoapServerTest.java | 5 +- .../coap/server/ServerIntegrationTest.java | 5 +- .../internal/BlockWiseCallbackTest.java | 5 +- .../BlockWiseIncomingTransactionTest.java | 5 +- .../internal/BlockWiseTransferTest.java | 5 +- .../server/internal/CoapServerBlocksTest.java | 5 +- .../internal/CoapServerBlocksUnitTest.java | 5 +- .../CoapServerDuplicateErrorsTest.java | 5 +- .../internal/CoapServerDuplicateTest.java | 5 +- .../CoapServerTransportContextTest.java | 5 +- .../internal/CoapTcpCSMStorageImplTest.java | 5 +- .../coap/server/internal/CoapTcpCSMTest.java | 5 +- .../server/internal/CoapTcpMessagingTest.java | 5 +- .../internal/CoapTransactionIdTest.java | 5 +- .../server/internal/CoapUdpMessagingTest.java | 5 +- .../internal/DuplicationDetectorTest.java | 5 +- .../server/internal/MockCoapTransport.java | 5 +- .../internal/TransactionManagerTest.java | 5 +- .../server/internal/TransactionQueueTest.java | 5 +- .../transmission/TransmissionTimeoutTest.java | 5 +- .../coap/transport/TransportContextTest.java | 5 +- .../transport/TransportExecutorsTest.java | 5 +- .../javassl/SSLSocketClientTransportTest.java | 5 +- .../mbed/coap/transport/javassl/SSLUtils.java | 5 +- ...gleConnectionSSLSocketServerTransport.java | 5 +- ...SingleConnectionSocketServerTransport.java | 5 +- .../udp/DatagramSocketTransportTest.java | 5 +- .../coap/utils/FutureCallbackAdapterTest.java | 5 +- .../com/mbed/coap/utils/HexArrayTest.java | 5 +- .../mbed/coap/utils/IpPortAddressTest.java | 5 +- .../coap/utils/ReadOnlyCoapResourceTest.java | 5 +- .../java/microbenchmark/ParsingBenchmark.java | 5 +- .../java/microbenchmark/ServerBenchmark.java | 5 +- .../microbenchmark/ServerBenchmarkBase.java | 5 +- .../ServerCachedThreadBenchmarkIgn.java | 5 +- .../ServerMultiThreadBenchmarkIgn.java | 5 +- ...verMultiThreadDuplicationBenchmarkIgn.java | 5 +- .../microbenchmark/ServerNotifBenchmark.java | 5 +- .../ServerSingleThreadBenchmark.java | 5 +- .../Block1TransferMaxSizeTest.java | 5 +- .../Block2TransferMaxSizeTest.java | 5 +- .../test/java/protocolTests/BlockTest.java | 5 +- .../BlockTransferOnDemandTest.java | 5 +- .../BlockwiseTransferWithTest.java | 5 +- .../protocolTests/ClientServerNONTest.java | 5 +- .../java/protocolTests/ClientServerTest.java | 5 +- .../ClientServerWithBlocksTest.java | 5 +- .../protocolTests/MalformedPacketTest.java | 5 +- .../java/protocolTests/Observation2Test.java | 5 +- .../java/protocolTests/ObservationTest.java | 5 +- .../ObservationWithBlockTest.java | 5 +- .../java/protocolTests/QueueRequestsTest.java | 5 +- .../protocolTests/SeparateResponseTest.java | 5 +- .../protocolTests/TcpIntegrationTest.java | 5 +- .../test/java/protocolTests/TimeoutTest.java | 5 +- .../utils/CoapPacketBuilder.java | 5 +- .../utils/TransportConnectorMock.java | 5 +- .../test/resources/regenerate-keystores.sh | 28 ++++---- deploy.sh | 5 +- example-client/coap-cli.sh | 3 + example-client/pom.xml | 3 + example-client/run.sh | 3 + .../main/java/com/mbed/coap/cli/CoapCli.java | 5 +- .../java/com/mbed/coap/cli/CoapSchemes.java | 5 +- .../com/mbed/coap/cli/DeviceEmulator.java | 5 +- .../com/mbed/coap/cli/TransportProvider.java | 5 +- .../mbed/coap/cli/providers/JdkProvider.java | 5 +- .../coap/cli/providers/OpensslProvider.java | 5 +- .../coap/cli/providers/PlainTextProvider.java | 5 +- .../cli/providers/StandardIoProvider.java | 5 +- .../stdio/OpensslProcessTransport.java | 5 +- .../stdio/StreamBlockingTransport.java | 5 +- .../com/mbed/coap/cli/DeviceEmulatorTest.java | 5 +- .../stdio/StreamBlockingTransportTest.java | 5 +- license-header.txt | 3 + lwm2m/pom.xml | 5 +- .../src/main/java/com/mbed/lwm2m/LWM2MID.java | 5 +- .../main/java/com/mbed/lwm2m/LWM2MObject.java | 5 +- .../com/mbed/lwm2m/LWM2MObjectInstance.java | 5 +- .../java/com/mbed/lwm2m/LWM2MResource.java | 5 +- .../com/mbed/lwm2m/LWM2MResourceInstance.java | 5 +- .../com/mbed/lwm2m/LWM2MResourceType.java | 5 +- .../com/mbed/lwm2m/json/JsonDeserializer.java | 5 +- .../com/mbed/lwm2m/json/JsonResource.java | 5 +- .../mbed/lwm2m/json/JsonResourceArray.java | 5 +- .../com/mbed/lwm2m/json/JsonSerializer.java | 5 +- .../mbed/lwm2m/json/NumberTypeAdapter.java | 5 +- .../lwm2m/model/DefaultResourceValidator.java | 5 +- .../java/com/mbed/lwm2m/model/Instances.java | 5 +- .../lwm2m/model/IntegerResourceValidator.java | 5 +- .../model/InvalidResourceURIException.java | 5 +- .../mbed/lwm2m/model/NotFoundException.java | 5 +- .../com/mbed/lwm2m/model/ObjectModel.java | 5 +- .../com/mbed/lwm2m/model/ObjectRegistry.java | 5 +- .../lwm2m/model/OpaqueResourceValidator.java | 5 +- .../com/mbed/lwm2m/model/ResourceModel.java | 5 +- .../mbed/lwm2m/model/ResourceValidator.java | 5 +- .../lwm2m/model/StringResourceValidator.java | 5 +- .../main/java/com/mbed/lwm2m/model/Type.java | 5 +- .../src/main/java/com/mbed/lwm2m/tlv/TLV.java | 5 +- .../com/mbed/lwm2m/tlv/TLVDeserializer.java | 5 +- .../com/mbed/lwm2m/tlv/TLVSerializer.java | 5 +- .../lwm2m/transport/TransportBinding.java | 5 +- .../TransportBindingParseException.java | 5 +- .../java/com/mbed/lwm2m/utils/HexArray.java | 5 +- .../test/java/com/mbed/lwm2m/LWM2MIDTest.java | 5 +- .../mbed/lwm2m/LWM2MObjectInstanceTest.java | 5 +- .../java/com/mbed/lwm2m/LWM2MObjectTest.java | 5 +- .../mbed/lwm2m/LWM2MResourceInstanceTest.java | 5 +- .../com/mbed/lwm2m/LWM2MResourceTest.java | 5 +- .../mbed/lwm2m/json/JsonDeserializerTest.java | 5 +- .../lwm2m/json/JsonResourceArrayTest.java | 5 +- .../com/mbed/lwm2m/json/JsonResourceTest.java | 5 +- .../mbed/lwm2m/json/JsonSerializerTest.java | 5 +- .../mbed/lwm2m/model/ObjectRegistryTest.java | 5 +- .../mbed/lwm2m/model/ResourceModelTest.java | 5 +- .../mbed/lwm2m/tlv/TLVDeserializerTest.java | 5 +- .../com/mbed/lwm2m/tlv/TLVSerializerTest.java | 5 +- .../lwm2m/transport/TransportBindingTest.java | 5 +- pmd-rules.xml | 3 + pom.xml | 7 +- spotbugs-exlude.xml | 3 + 251 files changed, 1081 insertions(+), 327 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/PR-check.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 5d6d3c04..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,70 +0,0 @@ -version: 2 -defaults: &defaults - working_directory: ~/PelionIoT/java-coap - - steps: - - checkout - - # Restore the dependency cache - - restore_cache: - key: mbed-java-coap - - # Build and test - - run: mvn install -P ci - - # Save dependency cache - - save_cache: - key: mbed-java-coap - paths: - - ~/.m2 - - - # publish reports - - run: - name: Save test results - command: | - mkdir -p ~/junit/ - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \; - when: always - - store_test_results: - path: ~/junit - - store_artifacts: - path: ~/junit - -jobs: - java-8: - docker: - - image: circleci/openjdk:8-jdk-browsers - <<: *defaults - - - java-11: - docker: - - image: circleci/openjdk:11-jdk-browsers - <<: *defaults - - java-17: - docker: - - image: cimg/openjdk:17.0-browsers - <<: *defaults - - -workflows: - version: 2 - commit: - jobs: - - java-8 - - java-11 - - java-17 - nightly: - triggers: - - schedule: - cron: "0 0 * * *" - filters: - branches: - only: - - master - jobs: - - java-8 - - java-11 - - java-17 diff --git a/.github/workflows/PR-check.yml b/.github/workflows/PR-check.yml new file mode 100644 index 00000000..2fe87fa8 --- /dev/null +++ b/.github/workflows/PR-check.yml @@ -0,0 +1,58 @@ +name: PR-checker +run-name: ${{ github.actor }} Pull Request - make all + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: java-coap-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +on: [push] +jobs: + mvn-clean-install-ci: + runs-on: ubuntu-22.04 + env: + PDM_BINARY_ARTIFACTS_DIR: pdm-binary-artifacts + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: "8" + distribution: "temurin" + - name: Cloning pdm-binary-artifacts + uses: actions/checkout@v3 + with: + repository: PelionIoT/pdm-binary-artifacts + token: ${{ secrets.ACCESS_TOKEN }} + path: ${{ env.PDM_BINARY_ARTIFACTS_DIR }} + - name: Initializing pdm-binary-artifacts + run: | + cd $PDM_BINARY_ARTIFACTS_DIR + bash init.sh --force + - name: Check hostname + run: | + HOST=$(hostname) + echo "Hostname is $HOST" + if [ "$HOST" != "localhost" ]; then + echo "Changing hostname to localhost, tests will fail otherwise." + sudo hostname localhost + fi + - run: mvn clean install -P ci + - name: Publish Test Report + if: success() || failure() + uses: scacap/action-surefire-report@v1 + with: + check_name: mvn clean install -P ci test report + + pysh-check: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Get scripts internal... + run: | + git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "git@github.com:" + git clone git@github.com:PelionIoT/scripts-internal.git + - name: Run no-more-lines w pysh-check + run: | + sudo apt install pycodestyle pydocstyle black + echo "." >scripts-internal/.nopyshcheck + scripts-internal/ci/more-lines-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} "scripts-internal/pysh-check/pysh-check.sh --workdir ." diff --git a/README.md b/README.md index 2a6a8089..1eb39bbd 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,17 @@ mbed CoAP [![codecov](https://codecov.io/gh/PelionIoT/java-coap/branch/master/graph/badge.svg)](https://codecov.io/gh/PelionIoT/java-coap) [![Known Vulnerabilities](https://snyk.io/test/github/PelionIoT/java-coap/badge.svg)](https://snyk.io/test/github/PelionIoT/java-coap) +Maintenance +----------- +This repository is under minimal maintenance. +There is a more actively developed version available at [https://github.com/open-coap/java-coap](https://github.com/open-coap/java-coap) - you might want to check that repository out. +There are API differences, though. + Introduction ------------ -This library makes it easy to integrate a Java SE enabled device with coap based services like [mbed Cloud](https://www.mbed.com/en/platform/cloud). -It can also help to emulate an embedded device for prototyping and testing purposes. +This library makes it easy to integrate a Java SE enabled device with CoAP based services like [Izuma Networks Device Management](https://www.izumanetworks.com). +It can also help to emulate an embedded device for prototyping and testing purposes. The following features are supported by the library: @@ -139,6 +145,24 @@ This [example client](example-client) demonstrates how to build coap client. Development ----------- +### Issues with localhost on Ubuntu + +Ubuntu has IP addresses for localhost, `127.0.0.1` and `127.0.1.1`. +This causes problems with CoAP packets, the request and response address does not match. +Change both addresses to `127.0.0.1` or comment or remove the latter from `/etc/hosts` and change hostname to localhost. + +To check hostname: + +``` + hostname +``` + +To change hostname to localhost: + +``` + sudo hostname localhost +``` + ### Build mvn clean install @@ -151,7 +175,6 @@ Development mvn com.mycila:license-maven-plugin:format - Contributions ------------- diff --git a/coap-core/pom.xml b/coap-core/pom.xml index dc054c7f..3a406322 100644 --- a/coap-core/pom.xml +++ b/coap-core/pom.xml @@ -1,7 +1,10 @@ diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MID.java b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MID.java index 5414857e..b04de6f9 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MID.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MID.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObject.java b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObject.java index 7086b960..e2a4e88f 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObject.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObject.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObjectInstance.java b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObjectInstance.java index ba4c9344..dfc02c7c 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObjectInstance.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MObjectInstance.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResource.java b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResource.java index 6ae9a91a..a993ec87 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResource.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResource.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceInstance.java b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceInstance.java index 1428cc92..4f3f815c 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceInstance.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceInstance.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceType.java b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceType.java index 371137c0..c074c3c5 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceType.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/LWM2MResourceType.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonDeserializer.java b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonDeserializer.java index b83f6c40..8c61e00d 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonDeserializer.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonDeserializer.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResource.java b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResource.java index 200c8396..f702d903 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResource.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResource.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResourceArray.java b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResourceArray.java index 829c46a6..b7f831bf 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResourceArray.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonResourceArray.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonSerializer.java b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonSerializer.java index bd67b73a..c2f8ec4e 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonSerializer.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/json/JsonSerializer.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/json/NumberTypeAdapter.java b/lwm2m/src/main/java/com/mbed/lwm2m/json/NumberTypeAdapter.java index e359364a..80a48d67 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/json/NumberTypeAdapter.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/json/NumberTypeAdapter.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/DefaultResourceValidator.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/DefaultResourceValidator.java index 9eef4900..60b8dfb6 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/DefaultResourceValidator.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/DefaultResourceValidator.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/Instances.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/Instances.java index 02c01a86..2742fc68 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/Instances.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/Instances.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/IntegerResourceValidator.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/IntegerResourceValidator.java index 16f2bf2d..be9b9ed6 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/IntegerResourceValidator.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/IntegerResourceValidator.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/InvalidResourceURIException.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/InvalidResourceURIException.java index 0ce94f07..f579ef42 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/InvalidResourceURIException.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/InvalidResourceURIException.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/NotFoundException.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/NotFoundException.java index 6e8b49cd..854add1d 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/NotFoundException.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/NotFoundException.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectModel.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectModel.java index 416dc234..2ce044e5 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectModel.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectModel.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectRegistry.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectRegistry.java index cc05d7b3..1e50663b 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectRegistry.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/ObjectRegistry.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/OpaqueResourceValidator.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/OpaqueResourceValidator.java index 54f1a98c..8ff6aece 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/OpaqueResourceValidator.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/OpaqueResourceValidator.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceModel.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceModel.java index 18d77e9f..b8c38db3 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceModel.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceModel.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceValidator.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceValidator.java index 9788adf9..df24314b 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceValidator.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/ResourceValidator.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/StringResourceValidator.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/StringResourceValidator.java index fdd554d5..c97b23ce 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/StringResourceValidator.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/StringResourceValidator.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/model/Type.java b/lwm2m/src/main/java/com/mbed/lwm2m/model/Type.java index 06fe173c..7f7c18b5 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/model/Type.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/model/Type.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLV.java b/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLV.java index d927fcae..a08f62d1 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLV.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLV.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVDeserializer.java b/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVDeserializer.java index 7ba9a771..d1a2f2bf 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVDeserializer.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVDeserializer.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVSerializer.java b/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVSerializer.java index aab054fc..5f05eadb 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVSerializer.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/tlv/TLVSerializer.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBinding.java b/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBinding.java index b8510cb9..3014ceec 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBinding.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBinding.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBindingParseException.java b/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBindingParseException.java index c79a225d..7ef40190 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBindingParseException.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/transport/TransportBindingParseException.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/main/java/com/mbed/lwm2m/utils/HexArray.java b/lwm2m/src/main/java/com/mbed/lwm2m/utils/HexArray.java index 5b2ae007..43844824 100644 --- a/lwm2m/src/main/java/com/mbed/lwm2m/utils/HexArray.java +++ b/lwm2m/src/main/java/com/mbed/lwm2m/utils/HexArray.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MIDTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MIDTest.java index 0f814a1b..611d7c10 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MIDTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MIDTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectInstanceTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectInstanceTest.java index f85b74c1..d89f6e2f 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectInstanceTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectInstanceTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectTest.java index 0a2cb91c..9639b1ab 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MObjectTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceInstanceTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceInstanceTest.java index 137fc1bb..ce52c25a 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceInstanceTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceInstanceTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceTest.java index 95ee0b2a..9f58875e 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/LWM2MResourceTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonDeserializerTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonDeserializerTest.java index aba007a7..f27511fa 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonDeserializerTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonDeserializerTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceArrayTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceArrayTest.java index c95509e4..aeac2483 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceArrayTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceArrayTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceTest.java index 1b8dd20e..39288cdb 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonResourceTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonSerializerTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonSerializerTest.java index cd50d32a..b5be810d 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonSerializerTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/json/JsonSerializerTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/model/ObjectRegistryTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/model/ObjectRegistryTest.java index 74ec6a5f..34a9fb13 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/model/ObjectRegistryTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/model/ObjectRegistryTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/model/ResourceModelTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/model/ResourceModelTest.java index 6f66a4b2..f114b053 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/model/ResourceModelTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/model/ResourceModelTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVDeserializerTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVDeserializerTest.java index 38f7c265..781f3b53 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVDeserializerTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVDeserializerTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVSerializerTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVSerializerTest.java index f6145356..01a6bdbe 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVSerializerTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/tlv/TLVSerializerTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/lwm2m/src/test/java/com/mbed/lwm2m/transport/TransportBindingTest.java b/lwm2m/src/test/java/com/mbed/lwm2m/transport/TransportBindingTest.java index 94b968bd..2176df97 100644 --- a/lwm2m/src/test/java/com/mbed/lwm2m/transport/TransportBindingTest.java +++ b/lwm2m/src/test/java/com/mbed/lwm2m/transport/TransportBindingTest.java @@ -1,6 +1,9 @@ -/** +/* * Copyright (C) 2011-2018 ARM Limited. All rights reserved. + * Copyright (c) 2023 Izuma Networks. All rights reserved. + * * SPDX-License-Identifier: Apache-2.0 + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/pmd-rules.xml b/pmd-rules.xml index d42a57e8..31052706 100644 --- a/pmd-rules.xml +++ b/pmd-rules.xml @@ -2,7 +2,10 @@