Browse Source

Improve code quality in core module

Patrick-Christopher Mattulat 10 months ago
parent
commit
d7bf7a0cc9
70 changed files with 264 additions and 295 deletions
  1. 3 3
      include/ls-std/core/ConditionalFunctionExecutor.hpp
  2. 3 3
      include/ls-std/core/LibraryVersion.hpp
  3. 15 16
      include/ls-std/core/Version.hpp
  4. 3 3
      include/ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp
  5. 3 3
      include/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.hpp
  6. 3 4
      include/ls-std/core/evaluator/NullPointerArgumentEvaluator.hpp
  7. 3 3
      include/ls-std/core/evaluator/NullPointerEvaluator.hpp
  8. 8 10
      include/ls-std/core/evaluator/RawNullPointerArgumentEvaluator.hpp
  9. 7 7
      include/ls-std/core/evaluator/RawNullPointerEvaluator.hpp
  10. 3 4
      include/ls-std/core/exception/EventNotHandledException.hpp
  11. 3 3
      include/ls-std/core/exception/Exception.hpp
  12. 4 4
      include/ls-std/core/exception/ExceptionMessage.hpp
  13. 3 4
      include/ls-std/core/exception/FileNotFoundException.hpp
  14. 3 3
      include/ls-std/core/exception/FileOperationException.hpp
  15. 3 3
      include/ls-std/core/exception/IllegalArgumentException.hpp
  16. 3 3
      include/ls-std/core/exception/IllegalArithmeticOperationException.hpp
  17. 2 4
      include/ls-std/core/exception/IncompleteJsonException.hpp
  18. 3 4
      include/ls-std/core/exception/IndexOutOfBoundsException.hpp
  19. 3 4
      include/ls-std/core/exception/NotImplementedException.hpp
  20. 3 3
      include/ls-std/core/exception/NullPointerException.hpp
  21. 3 3
      include/ls-std/core/interface/IBoxing.hpp
  22. 3 3
      include/ls-std/core/interface/IEncoding.hpp
  23. 3 3
      include/ls-std/core/interface/IEvaluator.hpp
  24. 3 3
      include/ls-std/core/interface/IJniApi.hpp
  25. 4 4
      include/ls-std/core/interface/IListener.hpp
  26. 4 4
      include/ls-std/core/interface/IReader.hpp
  27. 5 5
      include/ls-std/core/interface/ISerializable.hpp
  28. 5 5
      include/ls-std/core/interface/IStorable.hpp
  29. 3 3
      include/ls-std/core/interface/IValidator.hpp
  30. 4 5
      include/ls-std/core/interface/IWriter.hpp
  31. 3 3
      include/ls-std/core/jni/JniApi.hpp
  32. 3 2
      include/ls-std/core/jni/JniClass.hpp
  33. 3 2
      include/ls-std/core/jni/JniClassParameter.hpp
  34. 3 2
      include/ls-std/core/jni/JniMethod.hpp
  35. 3 2
      include/ls-std/core/jni/JniReturnValue.hpp
  36. 2 2
      include/ls-std/core/type/Types.hpp
  37. 8 8
      source/ls-std/core/Version.cpp
  38. 3 5
      source/ls-std/core/evaluator/EmptyStringArgumentEvaluator.cpp
  39. 5 7
      source/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.cpp
  40. 3 5
      source/ls-std/core/evaluator/NullPointerArgumentEvaluator.cpp
  41. 3 5
      source/ls-std/core/evaluator/NullPointerEvaluator.cpp
  42. 1 2
      source/ls-std/core/exception/EventNotHandledException.cpp
  43. 2 2
      source/ls-std/core/exception/Exception.cpp
  44. 2 2
      source/ls-std/core/exception/ExceptionMessage.cpp
  45. 1 3
      source/ls-std/core/exception/FileNotFoundException.cpp
  46. 1 3
      source/ls-std/core/exception/FileOperationException.cpp
  47. 1 3
      source/ls-std/core/exception/IllegalArgumentException.cpp
  48. 1 3
      source/ls-std/core/exception/IllegalArithmeticOperationException.cpp
  49. 1 3
      source/ls-std/core/exception/IncompleteJsonException.cpp
  50. 1 3
      source/ls-std/core/exception/IndexOutOfBoundsException.cpp
  51. 1 2
      source/ls-std/core/exception/NotImplementedException.cpp
  52. 1 3
      source/ls-std/core/exception/NullPointerException.cpp
  53. 4 4
      test/cases/core/ClassTest.cpp
  54. 4 4
      test/cases/core/VersionTest.cpp
  55. 5 5
      test/cases/core/evaluator/EmptyStringArgumentEvaluatorTest.cpp
  56. 5 5
      test/cases/core/evaluator/IndexOutOfBoundsEvaluatorTest.cpp
  57. 9 9
      test/cases/core/evaluator/NullPointerArgumentEvaluatorTest.cpp
  58. 9 9
      test/cases/core/evaluator/NullPointerEvaluatorTest.cpp
  59. 4 4
      test/cases/core/evaluator/RawNullPointerArgumentEvaluatorTest.cpp
  60. 4 4
      test/cases/core/evaluator/RawNullPointerEvaluatorTest.cpp
  61. 5 5
      test/cases/core/exception/EventNotHandledExceptionTest.cpp
  62. 5 5
      test/cases/core/exception/ExceptionMessageTest.cpp
  63. 5 5
      test/cases/core/exception/FileNotFoundExceptionTest.cpp
  64. 5 5
      test/cases/core/exception/FileOperationExceptionTest.cpp
  65. 5 5
      test/cases/core/exception/IllegalArgumentExceptionTest.cpp
  66. 5 5
      test/cases/core/exception/IllegalArithmeticOperationExceptionTest.cpp
  67. 5 5
      test/cases/core/exception/IncompleteJsonExceptionTest.cpp
  68. 5 5
      test/cases/core/exception/IndexOutOfBoundsExceptionTest.cpp
  69. 5 5
      test/cases/core/exception/NotImplementedExceptionTest.cpp
  70. 5 5
      test/cases/core/exception/NullPointerExceptionTest.cpp

+ 3 - 3
include/ls-std/core/ConditionalFunctionExecutor.hpp

@@ -3,19 +3,19 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-13
-* Changed:         2023-02-21
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_CONDITIONAL_FUNCTION_EXECUTOR_HPP
 #define LS_STD_CONDITIONAL_FUNCTION_EXECUTOR_HPP
 
+#include "definition.hpp"
 #include <functional>
-#include <ls-std/os/dynamic-goal.hpp>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL ConditionalFunctionExecutor
+  ls_std_class ConditionalFunctionExecutor
   {
     public:
 

+ 3 - 3
include/ls-std/core/LibraryVersion.hpp

@@ -3,19 +3,19 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-02
- * Changed:         2023-02-06
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_LIBRARY_VERSION_HPP
 #define LS_STD_LIBRARY_VERSION_HPP
 
-#include <ls-std/os/dynamic-goal.hpp>
+#include "definition.hpp"
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL LibraryVersion
+  ls_std_class LibraryVersion
   {
     public:
 

+ 15 - 16
include/ls-std/core/Version.hpp

@@ -3,48 +3,47 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-27
- * Changed:         2023-05-16
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_VERSION_HPP
 #define LS_STD_VERSION_HPP
 
-#include "Class.hpp"
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/ISerializable.hpp>
 #include <ls-std/core/type/Types.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string_view>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL Version : public ls::std::core::interface_type::ISerializable
+  ls_std_class Version final : public interface_type::ISerializable
   {
     public:
 
-      explicit Version(ls::std::core::type::version_type _majorVersion, ls::std::core::type::version_type _minorVersion, ls::std::core::type::version_type _patchVersion);
+      explicit Version(type::version_type _majorVersion, type::version_type _minorVersion, type::version_type _patchVersion);
       ~Version() noexcept override;
 
       // implementation
 
-      [[nodiscard]] ls::std::core::type::byte_field marshal() override;
-      void unmarshal(const ls::std::core::type::byte_field &_data) override;
+      [[nodiscard]] type::byte_field marshal() override;
+      void unmarshal(const type::byte_field &_data) override;
 
       // other functionality
 
-      [[nodiscard]] ls::std::core::type::version_type getMajorVersion() const;
-      [[nodiscard]] ls::std::core::type::version_type getMinorVersion() const;
-      [[nodiscard]] ls::std::core::type::version_type getPatchVersion() const;
+      [[nodiscard]] type::version_type getMajorVersion() const;
+      [[nodiscard]] type::version_type getMinorVersion() const;
+      [[nodiscard]] type::version_type getPatchVersion() const;
       [[nodiscard]] static bool isValid(const ::std::string &_versionString);
-      void setMajorVersion(ls::std::core::type::version_type _major);
-      void setMinorVersion(ls::std::core::type::version_type _minor);
-      void setPatchVersion(ls::std::core::type::version_type _patch);
+      void setMajorVersion(type::version_type _major);
+      void setMinorVersion(type::version_type _minor);
+      void setPatchVersion(type::version_type _patch);
 
     private:
 
-      ls::std::core::type::version_type majorVersion{};
-      ls::std::core::type::version_type minorVersion{};
-      ls::std::core::type::version_type patchVersion{};
+      type::version_type majorVersion{};
+      type::version_type minorVersion{};
+      type::version_type patchVersion{};
 
       [[nodiscard]] static bool _isValid(::std::string_view _versionString);
   };

+ 3 - 3
include/ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp

@@ -3,20 +3,20 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-22
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_EMPTY_STRING_ARGUMENT_EVALUATOR_HPP
 #define LS_STD_EMPTY_STRING_ARGUMENT_EVALUATOR_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IEvaluator.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL EmptyStringArgumentEvaluator : public ls::std::core::interface_type::IEvaluator
+  ls_std_class EmptyStringArgumentEvaluator final : public interface_type::IEvaluator
   {
     public:
 

+ 3 - 3
include/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.hpp

@@ -3,20 +3,20 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-22
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_INDEX_OUT_OF_BOUNDS_EVALUATOR_EVALUATOR_HPP
 #define LS_STD_INDEX_OUT_OF_BOUNDS_EVALUATOR_EVALUATOR_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IEvaluator.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL IndexOutOfBoundsEvaluator : public ls::std::core::interface_type::IEvaluator
+  ls_std_class IndexOutOfBoundsEvaluator final : public interface_type::IEvaluator
   {
     public:
 

+ 3 - 4
include/ls-std/core/evaluator/NullPointerArgumentEvaluator.hpp

@@ -3,22 +3,21 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-05-23
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_NULL_POINTER_ARGUMENT_EVALUATOR_HPP
 #define LS_STD_NULL_POINTER_ARGUMENT_EVALUATOR_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IEvaluator.hpp>
-#include <ls-std/core/type/RawPointer.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <memory>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL NullPointerArgumentEvaluator : public ls::std::core::interface_type::IEvaluator
+  ls_std_class NullPointerArgumentEvaluator final : public interface_type::IEvaluator
   {
     public:
 

+ 3 - 3
include/ls-std/core/evaluator/NullPointerEvaluator.hpp

@@ -3,21 +3,21 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-05-24
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_NULL_POINTER_EVALUATOR_HPP
 #define LS_STD_NULL_POINTER_EVALUATOR_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IEvaluator.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <memory>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL NullPointerEvaluator : public ls::std::core::interface_type::IEvaluator
+  ls_std_class NullPointerEvaluator final : public interface_type::IEvaluator
   {
     public:
 

+ 8 - 10
include/ls-std/core/evaluator/RawNullPointerArgumentEvaluator.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-05-23
-* Changed:         2023-05-24
+* Changed:         2024-05-31
 *
 * */
 
@@ -18,13 +18,13 @@
 namespace ls::std::core
 {
   template<typename T>
-  class RawNullPointerArgumentEvaluator : public ls::std::core::interface_type::IEvaluator
+  class RawNullPointerArgumentEvaluator final : public interface_type::IEvaluator
   {
     public:
 
-      explicit RawNullPointerArgumentEvaluator(const ls::std::core::type::RawPointer<T> &_argument) : argument(_argument)
+      explicit RawNullPointerArgumentEvaluator(const type::RawPointer<T> &_argument) : argument(_argument)
       {}
-      explicit RawNullPointerArgumentEvaluator(const ls::std::core::type::RawPointer<T> &_argument, const ::std::string &_message) : argument(_argument), message(_message)
+      explicit RawNullPointerArgumentEvaluator(const type::RawPointer<T> &_argument, ::std::string _message) : argument(_argument), message(::std::move(_message))
       {}
       ~RawNullPointerArgumentEvaluator() noexcept override = default;
 
@@ -34,18 +34,16 @@ namespace ls::std::core
         {
           if (this->message.empty())
           {
-            throw ls::std::core::IllegalArgumentException{"passed argument is null!"};
-          }
-          else
-          {
-            throw ls::std::core::IllegalArgumentException{this->message};
+            throw IllegalArgumentException{"passed argument is null!"};
           }
+
+          throw IllegalArgumentException{this->message};
         }
       }
 
     private:
 
-      ls::std::core::type::RawPointer<T> argument{};
+      type::RawPointer<T> argument{};
       ::std::string message{};
   };
 }

+ 7 - 7
include/ls-std/core/evaluator/RawNullPointerEvaluator.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-05-24
-* Changed:         2023-05-24
+* Changed:         2024-05-31
 *
 * */
 
@@ -18,13 +18,13 @@
 namespace ls::std::core
 {
   template<typename T>
-  class RawNullPointerEvaluator : public ls::std::core::interface_type::IEvaluator
+  class RawNullPointerEvaluator final : public interface_type::IEvaluator
   {
     public:
 
-      explicit RawNullPointerEvaluator(const ls::std::core::type::RawPointer<T> &_argument) : argument(_argument)
+      explicit RawNullPointerEvaluator(const type::RawPointer<T> &_argument) : argument(_argument)
       {}
-      RawNullPointerEvaluator(const ls::std::core::type::RawPointer<T> &_argument, const ::std::string &_message) : argument(_argument), message(_message)
+      RawNullPointerEvaluator(const type::RawPointer<T> &_argument, ::std::string _message) : argument(_argument), message(::std::move(_message))
       {}
       ~RawNullPointerEvaluator() noexcept override = default;
 
@@ -34,18 +34,18 @@ namespace ls::std::core
         {
           if (this->message.empty())
           {
-            throw ls::std::core::NullPointerException{"reference in use is null!"};
+            throw NullPointerException{"reference in use is null!"};
           }
           else
           {
-            throw ls::std::core::NullPointerException{this->message};
+            throw NullPointerException{this->message};
           }
         }
       }
 
     private:
 
-      ls::std::core::type::RawPointer<T> argument{};
+      type::RawPointer<T> argument{};
       ::std::string message{};
   };
 }

+ 3 - 4
include/ls-std/core/exception/EventNotHandledException.hpp

@@ -3,20 +3,19 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-27
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_EVENT_NOT_HANDLED_EXCEPTION_HPP
 #define LS_STD_EVENT_NOT_HANDLED_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
-#include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL EventNotHandledException : public ls::std::core::Exception
+  ls_std_class EventNotHandledException final : public Exception
   {
     public:
 

+ 3 - 3
include/ls-std/core/exception/Exception.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-22
-* Changed:         2023-05-19
+* Changed:         2024-05-31
 *
 * */
 
@@ -11,13 +11,13 @@
 #define LS_STD_EXCEPTION_HPP
 
 #include <exception>
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 #include <string>
 #include <string_view>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL Exception : public ::std::exception
+  ls_std_class Exception : public ::std::exception
   {
     public:
 

+ 4 - 4
include/ls-std/core/exception/ExceptionMessage.hpp

@@ -3,26 +3,26 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-07
-* Changed:         2023-02-07
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_EXCEPTION_MESSAGE_HPP
 #define LS_STD_EXCEPTION_MESSAGE_HPP
 
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL ExceptionMessage
+  ls_std_class ExceptionMessage
   {
     public:
 
       explicit ExceptionMessage(::std::string _message);
       ~ExceptionMessage();
 
-      char *toCharacterPointer();
+      [[nodiscard]] char *toCharacterPointer() const;
 
     private:
 

+ 3 - 4
include/ls-std/core/exception/FileNotFoundException.hpp

@@ -3,20 +3,19 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_FILE_NOT_FOUND_EXCEPTION_HPP
 #define LS_STD_FILE_NOT_FOUND_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
-#include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL FileNotFoundException : public ls::std::core::Exception
+  ls_std_class FileNotFoundException final : public Exception
   {
     public:
 

+ 3 - 3
include/ls-std/core/exception/FileOperationException.hpp

@@ -3,20 +3,20 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_FILE_OPERATION_EXCEPTION_HPP
 #define LS_STD_FILE_OPERATION_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL FileOperationException : public ls::std::core::Exception
+  ls_std_class FileOperationException final : public Exception
   {
     public:
 

+ 3 - 3
include/ls-std/core/exception/IllegalArgumentException.hpp

@@ -3,20 +3,20 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_ILLEGAL_ARGUMENT_EXCEPTION_HPP
 #define LS_STD_ILLEGAL_ARGUMENT_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL IllegalArgumentException : public ls::std::core::Exception
+  ls_std_class IllegalArgumentException final : public Exception
   {
     public:
 

+ 3 - 3
include/ls-std/core/exception/IllegalArithmeticOperationException.hpp

@@ -3,20 +3,20 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_ILLEGAL_ARITHMETIC_OPERATION_EXCEPTION_HPP
 #define LS_STD_ILLEGAL_ARITHMETIC_OPERATION_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL IllegalArithmeticOperationException : public ls::std::core::Exception
+  ls_std_class IllegalArithmeticOperationException final : public Exception
   {
     public:
 

+ 2 - 4
include/ls-std/core/exception/IncompleteJsonException.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-30
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
@@ -11,12 +11,10 @@
 #define LS_STD_INCOMPLETE_JSON_EXCEPTION_HPP
 
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
-#include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL IncompleteJsonException : public ls::std::core::Exception
+  ls_std_class IncompleteJsonException final : public Exception
   {
     public:
 

+ 3 - 4
include/ls-std/core/exception/IndexOutOfBoundsException.hpp

@@ -3,20 +3,19 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-05-19
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP
 #define LS_STD_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
-#include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL IndexOutOfBoundsException : public ls::std::core::Exception
+  ls_std_class IndexOutOfBoundsException final : public Exception
   {
     public:
 

+ 3 - 4
include/ls-std/core/exception/NotImplementedException.hpp

@@ -3,20 +3,19 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-03-27
-* Changed:         2023-05-19
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_NOT_IMPLEMENTED_EXCEPTION_HPP
 #define LS_STD_NOT_IMPLEMENTED_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include "Exception.hpp"
-#include <ls-std/os/dynamic-goal.hpp>
-#include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL NotImplementedException : public ls::std::core::Exception
+  ls_std_class NotImplementedException final : public Exception
   {
     public:
 

+ 3 - 3
include/ls-std/core/exception/NullPointerException.hpp

@@ -3,20 +3,20 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-06
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_NULL_POINTER_EXCEPTION_HPP
 #define LS_STD_NULL_POINTER_EXCEPTION_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/exception/Exception.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core
 {
-  class LS_STD_DYNAMIC_GOAL NullPointerException : public ls::std::core::Exception
+  ls_std_class NullPointerException final : public Exception
   {
     public:
 

+ 3 - 3
include/ls-std/core/interface/IBoxing.hpp

@@ -3,19 +3,19 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2023-05-17
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_I_BOXING_HPP
 #define LS_STD_I_BOXING_HPP
 
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 #include <string>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IBoxing
+  ls_std_class IBoxing
   {
     public:
 

+ 3 - 3
include/ls-std/core/interface/IEncoding.hpp

@@ -3,19 +3,19 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-01-03
- * Changed:         2023-02-05
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_I_ENCODING_HPP
 #define LS_STD_I_ENCODING_HPP
 
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 #include <string>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IEncoding
+  ls_std_class IEncoding
   {
     public:
 

+ 3 - 3
include/ls-std/core/interface/IEvaluator.hpp

@@ -3,18 +3,18 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-08
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_I_EVALUATOR_HPP
 #define LS_STD_I_EVALUATOR_HPP
 
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IEvaluator
+  ls_std_class IEvaluator
   {
     public:
 

+ 3 - 3
include/ls-std/core/interface/IJniApi.hpp

@@ -3,20 +3,20 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-07
-* Changed:         2023-04-11
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_I_JNI_API_HPP
 #define LS_STD_I_JNI_API_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <jni.h>
-#include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 
 namespace ls::std::core::experimental::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IJniApi
+  ls_std_class IJniApi
   {
     public:
 

+ 4 - 4
include/ls-std/core/interface/IListener.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-14
- * Changed:         2023-02-05
+ * Changed:         2024-05-31
  *
  * */
 
@@ -11,18 +11,18 @@
 #define LS_STD_I_LISTENER_HPP
 
 #include <ls-std/core/Class.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IListener
+  ls_std_class IListener // TODO: deprecated
   {
     public:
 
       IListener();
       virtual ~IListener();
 
-      virtual void listen(const ls::std::core::Class &_info) = 0;
+      virtual void listen(const Class &_info) = 0;
   };
 }
 

+ 4 - 4
include/ls-std/core/interface/IReader.hpp

@@ -3,26 +3,26 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2023-02-08
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_I_READER_HPP
 #define LS_STD_I_READER_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/type/Types.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IReader
+  ls_std_class IReader
   {
     public:
 
       IReader();
       virtual ~IReader();
 
-      virtual ls::std::core::type::byte_field read() = 0;
+      virtual type::byte_field read() = 0;
   };
 }
 

+ 5 - 5
include/ls-std/core/interface/ISerializable.hpp

@@ -3,27 +3,27 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-21
- * Changed:         2023-02-08
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_I_SERIALIZABLE_HPP
 #define LS_STD_I_SERIALIZABLE_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/type/Types.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL ISerializable
+  ls_std_class ISerializable
   {
     public:
 
       ISerializable();
       virtual ~ISerializable();
 
-      virtual ls::std::core::type::byte_field marshal() = 0;
-      virtual void unmarshal(const ls::std::core::type::byte_field &_data) = 0;
+      virtual type::byte_field marshal() = 0;
+      virtual void unmarshal(const type::byte_field &_data) = 0;
   };
 }
 

+ 5 - 5
include/ls-std/core/interface/IStorable.hpp

@@ -3,27 +3,27 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-19
- * Changed:         2023-02-08
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_I_STORABLE_HPP
 #define LS_STD_I_STORABLE_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/type/Types.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IStorable
+  ls_std_class IStorable
   {
     public:
 
       IStorable();
       virtual ~IStorable();
 
-      virtual ls::std::core::type::byte_field load() = 0;
-      virtual void save(const ls::std::core::type::byte_field &_data) = 0;
+      virtual type::byte_field load() = 0;
+      virtual void save(const type::byte_field &_data) = 0;
   };
 }
 

+ 3 - 3
include/ls-std/core/interface/IValidator.hpp

@@ -3,18 +3,18 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-08
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_I_VALIDATOR_HPP
 #define LS_STD_I_VALIDATOR_HPP
 
-#include <ls-std/os/dynamic-goal.hpp>
+#include <ls-std/core/definition.hpp>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IValidator
+  ls_std_class IValidator //TODO: change to isTrue() and isFalse()
   {
     public:
 

+ 4 - 5
include/ls-std/core/interface/IWriter.hpp

@@ -3,27 +3,26 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2023-02-08
+ * Changed:         2024-05-31
  *
  * */
 
 #ifndef LS_STD_I_WRITER_HPP
 #define LS_STD_I_WRITER_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/type/Types.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
-#include <vector>
 
 namespace ls::std::core::interface_type
 {
-  class LS_STD_DYNAMIC_GOAL IWriter
+  ls_std_class IWriter
   {
     public:
 
       IWriter();
       virtual ~IWriter();
 
-      virtual bool write(const ls::std::core::type::byte_field &_data) = 0;
+      virtual bool write(const type::byte_field &_data) = 0;
   };
 }
 

+ 3 - 3
include/ls-std/core/jni/JniApi.hpp

@@ -3,19 +3,19 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-07
-* Changed:         2023-04-11
+* Changed:         2024-05-31
 *
 * */
 
 #ifndef LS_STD_JNI_API_HPP
 #define LS_STD_JNI_API_HPP
 
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IJniApi.hpp>
-#include <ls-std/os/dynamic-goal.hpp>
 
 namespace ls::std::core::experimental
 {
-  class LS_STD_DYNAMIC_GOAL JniApi : public ls::std::core::experimental::interface_type::IJniApi
+  ls_std_class JniApi : public ls::std::core::experimental::interface_type::IJniApi
   {
     public:
 

+ 3 - 2
include/ls-std/core/jni/JniClass.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-07
-* Changed:         2023-05-16
+* Changed:         2024-05-31
 *
 * */
 
@@ -14,6 +14,7 @@
 #include "JniMethod.hpp"
 #include "JniReturnValue.hpp"
 #include <jni.h>
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IJniApi.hpp>
 #include <ls-std/os/dynamic-goal.hpp>
 #include <memory>
@@ -22,7 +23,7 @@
 
 namespace ls::std::core::experimental
 {
-  class LS_STD_DYNAMIC_GOAL JniClass
+  ls_std_class JniClass
   {
     public:
 

+ 3 - 2
include/ls-std/core/jni/JniClassParameter.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-07
-* Changed:         2023-05-16
+* Changed:         2024-05-31
 *
 * */
 
@@ -11,6 +11,7 @@
 #define LS_STD_JNI_CLASS_PARAMETER_HPP
 
 #include <jni.h>
+#include <ls-std/core/definition.hpp>
 #include <ls-std/core/interface/IJniApi.hpp>
 #include <ls-std/os/dynamic-goal.hpp>
 #include <memory>
@@ -18,7 +19,7 @@
 
 namespace ls::std::core::experimental
 {
-  class LS_STD_DYNAMIC_GOAL JniClassParameter
+  ls_std_class JniClassParameter
   {
     public:
 

+ 3 - 2
include/ls-std/core/jni/JniMethod.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-08
-* Changed:         2023-05-16
+* Changed:         2024-05-31
 *
 * */
 
@@ -11,13 +11,14 @@
 #define LS_STD_JNI_METHOD_HPP
 
 #include <jni.h>
+#include <ls-std/core/definition.hpp>
 #include <ls-std/os/dynamic-goal.hpp>
 #include <string>
 #include <string_view>
 
 namespace ls::std::core::experimental
 {
-  class LS_STD_DYNAMIC_GOAL JniMethod
+  ls_std_class JniMethod
   {
     public:
 

+ 3 - 2
include/ls-std/core/jni/JniReturnValue.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-08
-* Changed:         2023-04-11
+* Changed:         2024-05-31
 *
 * */
 
@@ -11,11 +11,12 @@
 #define LS_STD_JNI_RETURN_VALUE_HPP
 
 #include <jni.h>
+#include <ls-std/core/definition.hpp>
 #include <ls-std/os/dynamic-goal.hpp>
 
 namespace ls::std::core::experimental
 {
-  class LS_STD_DYNAMIC_GOAL JniReturnValue
+  ls_std_class JniReturnValue
   {
     public:
 

+ 2 - 2
include/ls-std/core/type/Types.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2023-05-16
+ * Changed:         2024-05-31
  *
  * */
 
@@ -19,7 +19,7 @@ namespace ls::std::core::type
   using byte_field = ::std::string;
   using long_type = long long int;
   using version_type = int;
-  using json = nlohmann::json;
+  using json = nlohmann::json; // TODO: check new version
 }
 
 #endif

+ 8 - 8
source/ls-std/core/Version.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-28
- * Changed:         2023-05-16
+ * Changed:         2024-05-31
  *
  * */
 
@@ -20,7 +20,7 @@ using std::string;
 using std::string_view;
 using std::to_string;
 
-Version::Version(version_type _majorVersion, version_type _minorVersion, version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
+Version::Version(const version_type _majorVersion, const version_type _minorVersion, const version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
 {}
 
 Version::~Version() noexcept = default;
@@ -40,7 +40,7 @@ void Version::unmarshal(const byte_field &_data)
 {
   string field = _data;
 
-  if (Version::_isValid(_data))
+  if (_isValid(_data))
   {
     size_t position = field.find('.');
     string subSequence = field.substr(0, position);
@@ -73,25 +73,25 @@ version_type Version::getPatchVersion() const
 
 bool Version::isValid(const string &_versionString)
 {
-  return Version::_isValid(_versionString);
+  return _isValid(_versionString);
 }
 
-void Version::setMajorVersion(version_type _major)
+void Version::setMajorVersion(const version_type _major)
 {
   this->majorVersion = _major;
 }
 
-void Version::setMinorVersion(version_type _minor)
+void Version::setMinorVersion(const version_type _minor)
 {
   this->minorVersion = _minor;
 }
 
-void Version::setPatchVersion(version_type _patch)
+void Version::setPatchVersion(const version_type _patch)
 {
   this->patchVersion = _patch;
 }
 
-bool Version::_isValid(string_view _versionString)
+bool Version::_isValid(const string_view _versionString)
 {
   bool isValidVersionString{};
   static regex versionRegex{R"(\d+[.]\d+[.]\d+)"};

+ 3 - 5
source/ls-std/core/evaluator/EmptyStringArgumentEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-23
+* Changed:         2024-05-31
 *
 * */
 
@@ -31,9 +31,7 @@ void EmptyStringArgumentEvaluator::evaluate()
     {
       throw IllegalArgumentException{"passed argument is empty!"};
     }
-    else
-    {
-      throw IllegalArgumentException{this->message};
-    }
+
+    throw IllegalArgumentException{this->message};
   }
 }

+ 5 - 7
source/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-05-16
+* Changed:         2024-05-31
 *
 * */
 
@@ -15,10 +15,10 @@ using ls::std::core::IndexOutOfBoundsException;
 using std::move;
 using std::string;
 
-IndexOutOfBoundsEvaluator::IndexOutOfBoundsEvaluator(size_t _index, size_t _size) : index(_index), size(_size)
+IndexOutOfBoundsEvaluator::IndexOutOfBoundsEvaluator(const size_t _index, const size_t _size) : index(_index), size(_size)
 {}
 
-IndexOutOfBoundsEvaluator::IndexOutOfBoundsEvaluator(size_t _index, size_t _size, string _message) : index(_index), message(::move(_message)), size(_size)
+IndexOutOfBoundsEvaluator::IndexOutOfBoundsEvaluator(const size_t _index, const size_t _size, string _message) : index(_index), message(::move(_message)), size(_size)
 {}
 
 IndexOutOfBoundsEvaluator::~IndexOutOfBoundsEvaluator() noexcept = default;
@@ -31,9 +31,7 @@ void IndexOutOfBoundsEvaluator::evaluate()
     {
       throw IndexOutOfBoundsException{};
     }
-    else
-    {
-      throw IndexOutOfBoundsException{this->message};
-    }
+
+    throw IndexOutOfBoundsException{this->message};
   }
 }

+ 3 - 5
source/ls-std/core/evaluator/NullPointerArgumentEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-05-23
+* Changed:         2024-05-31
 *
 * */
 
@@ -35,9 +35,7 @@ void NullPointerArgumentEvaluator::evaluate()
     {
       throw IllegalArgumentException{"passed argument is null!"};
     }
-    else
-    {
-      throw IllegalArgumentException{this->message};
-    }
+
+    throw IllegalArgumentException{this->message};
   }
 }

+ 3 - 5
source/ls-std/core/evaluator/NullPointerEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-05-24
+* Changed:         2024-05-31
 *
 * */
 
@@ -33,9 +33,7 @@ void NullPointerEvaluator::evaluate()
     {
       throw NullPointerException{"reference in use is null!"};
     }
-    else
-    {
-      throw NullPointerException{this->message};
-    }
+
+    throw NullPointerException{this->message};
   }
 }

+ 1 - 2
source/ls-std/core/exception/EventNotHandledException.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
@@ -12,7 +12,6 @@
 
 using ls::std::core::EventNotHandledException;
 using ls::std::core::Exception;
-using std::move;
 using std::string;
 
 EventNotHandledException::EventNotHandledException() : Exception("EventNotHandledException")

+ 2 - 2
source/ls-std/core/exception/Exception.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-22
-* Changed:         2023-05-19
+* Changed:         2024-05-31
 *
 * */
 
@@ -41,7 +41,7 @@ const char *Exception::_getIdentifiedMessage(const string &_defaultMessage) cons
   return ExceptionMessage{concatenatedMessage}.toCharacterPointer();
 }
 
-void Exception::_setMessage(string_view _message)
+void Exception::_setMessage(const string_view _message)
 {
   this->message = _message;
 }

+ 2 - 2
source/ls-std/core/exception/ExceptionMessage.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-07
-* Changed:         2023-05-24
+* Changed:         2024-05-31
 *
 * */
 
@@ -19,7 +19,7 @@ ExceptionMessage::ExceptionMessage(string _message) : message(::move(_message))
 
 ExceptionMessage::~ExceptionMessage() = default;
 
-char *ExceptionMessage::toCharacterPointer()
+char *ExceptionMessage::toCharacterPointer() const
 {
   char *rawPointerMessage{};
 

+ 1 - 3
source/ls-std/core/exception/FileNotFoundException.cpp

@@ -3,16 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/FileNotFoundException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::FileNotFoundException;
-using std::move;
 using std::string;
 
 FileNotFoundException::FileNotFoundException() : Exception("FileNotFoundException")

+ 1 - 3
source/ls-std/core/exception/FileOperationException.cpp

@@ -3,16 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/FileOperationException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::FileOperationException;
-using std::move;
 using std::string;
 
 FileOperationException::FileOperationException() : Exception("FileOperationException")

+ 1 - 3
source/ls-std/core/exception/IllegalArgumentException.cpp

@@ -3,16 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/IllegalArgumentException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::IllegalArgumentException;
-using std::move;
 using std::string;
 
 IllegalArgumentException::IllegalArgumentException() : Exception("IllegalArgumentException")

+ 1 - 3
source/ls-std/core/exception/IllegalArithmeticOperationException.cpp

@@ -3,16 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/IllegalArithmeticOperationException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::IllegalArithmeticOperationException;
-using std::move;
 using std::string;
 
 IllegalArithmeticOperationException::IllegalArithmeticOperationException() : Exception("IllegalArithmeticOperationException")

+ 1 - 3
source/ls-std/core/exception/IncompleteJsonException.cpp

@@ -3,16 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/IncompleteJsonException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::IncompleteJsonException;
-using std::move;
 using std::string;
 
 IncompleteJsonException::IncompleteJsonException() : Exception("IncompleteJsonException")

+ 1 - 3
source/ls-std/core/exception/IndexOutOfBoundsException.cpp

@@ -3,16 +3,14 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-05-19
+* Changed:         2024-05-31
 *
 * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/IndexOutOfBoundsException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::IndexOutOfBoundsException;
-using std::move;
 using std::string;
 
 IndexOutOfBoundsException::IndexOutOfBoundsException() : Exception("IndexOutOfBoundsException")

+ 1 - 2
source/ls-std/core/exception/NotImplementedException.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-03-27
-* Changed:         2023-05-19
+* Changed:         2024-05-31
 *
 * */
 
@@ -14,7 +14,6 @@
 using ls::std::core::Exception;
 using ls::std::core::ExceptionMessage;
 using ls::std::core::NotImplementedException;
-using std::move;
 using std::string;
 
 NotImplementedException::NotImplementedException() : Exception("NotImplementedException")

+ 1 - 3
source/ls-std/core/exception/NullPointerException.cpp

@@ -3,16 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2023-02-04
- * Changed:         2023-05-19
+ * Changed:         2024-05-31
  *
  * */
 
-#include <ls-std/core/exception/ExceptionMessage.hpp>
 #include <ls-std/core/exception/NullPointerException.hpp>
 
 using ls::std::core::Exception;
 using ls::std::core::NullPointerException;
-using std::move;
 using std::string;
 
 NullPointerException::NullPointerException() : Exception("NullPointerException")

+ 4 - 4
test/cases/core/ClassTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-16
- * Changed:         2023-05-15
+ * Changed:         2024-05-31
  *
  * */
 
@@ -36,7 +36,7 @@ namespace
           {
             Class object{""};
           }
-          catch (const IllegalArgumentException &_exception)
+          catch ([[maybe_unused]] const IllegalArgumentException &_exception)
           {
             throw;
           }
@@ -46,13 +46,13 @@ namespace
 
   TEST_F(ClassTest, destructor)
   {
-    auto object = make_shared<ClassWrapper>();
+    const auto object = make_shared<ClassWrapper>();
     EXPECT_CALL(*object, Die());
   }
 
   TEST_F(ClassTest, getClassName)
   {
-    Class object{"Class"};
+    const Class object{"Class"};
     ASSERT_STREQ("Class", object.getClassName().c_str());
   }
 

+ 4 - 4
test/cases/core/VersionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-28
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -45,19 +45,19 @@ namespace
 
   TEST_F(VersionTest, getMajorVersion)
   {
-    Version version{13, 2, 4};
+    const Version version{13, 2, 4};
     ASSERT_EQ(13, version.getMajorVersion());
   }
 
   TEST_F(VersionTest, getMinorVersion)
   {
-    Version version{13, 2, 4};
+    const Version version{13, 2, 4};
     ASSERT_EQ(2, version.getMinorVersion());
   }
 
   TEST_F(VersionTest, getPatchVersion)
   {
-    Version version{13, 2, 4};
+    const Version version{13, 2, 4};
     ASSERT_EQ(4, version.getPatchVersion());
   }
 

+ 5 - 5
test/cases/core/evaluator/EmptyStringArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-03-25
+* Changed:         2024-05-31
 *
 * */
 
@@ -36,8 +36,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - passed argument is empty!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - passed argument is empty!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -56,8 +56,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - this id is empty!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - this id is empty!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/evaluator/IndexOutOfBoundsEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-03-25
+* Changed:         2024-05-31
 *
 * */
 
@@ -36,8 +36,8 @@ namespace
           }
           catch (const IndexOutOfBoundsException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - provided index is out of bounds!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - provided index is out of bounds!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -56,8 +56,8 @@ namespace
           }
           catch (const IndexOutOfBoundsException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - index 3 is not in range of the containers size, which is 2!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - index 3 is not in range of the containers size, which is 2!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 9 - 9
test/cases/core/evaluator/NullPointerArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-04-07
+* Changed:         2024-05-31
 *
 * */
 
@@ -38,8 +38,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - passed argument is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - passed argument is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -58,8 +58,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - this reference is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - this reference is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -80,8 +80,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - passed argument is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - passed argument is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -102,8 +102,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - this reference is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - this reference is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 9 - 9
test/cases/core/evaluator/NullPointerEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-05-22
+* Changed:         2024-05-31
 *
 * */
 
@@ -38,8 +38,8 @@ namespace
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - reference in use is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - reference in use is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -58,8 +58,8 @@ namespace
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - this reference is not set and causes this exception!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - this reference is not set and causes this exception!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -80,8 +80,8 @@ namespace
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - reference in use is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - reference in use is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -102,8 +102,8 @@ namespace
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - this reference is not set and causes this exception!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - this reference is not set and causes this exception!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 4 - 4
test/cases/core/evaluator/RawNullPointerArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-05-23
-* Changed:         2023-05-23
+* Changed:         2024-05-31
 *
 * */
 
@@ -32,12 +32,12 @@ namespace
         {
           try
           {
-            RawNullPointerArgumentEvaluator<void>{RawPointer<void>{nullptr}}.evaluate();
+            RawNullPointerArgumentEvaluator{RawPointer<void>{nullptr}}.evaluate();
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - passed argument is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - passed argument is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 4 - 4
test/cases/core/evaluator/RawNullPointerEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-05-24
-* Changed:         2023-05-24
+* Changed:         2024-05-31
 *
 * */
 
@@ -32,12 +32,12 @@ namespace
         {
           try
           {
-            RawNullPointerEvaluator<void>{RawPointer<void>{nullptr}}.evaluate();
+            RawNullPointerEvaluator{RawPointer<void>{nullptr}}.evaluate();
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - reference in use is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - reference in use is null!";
 
             ASSERT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/EventNotHandledExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-27
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const EventNotHandledException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - event was not handled - nothing happened!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - event was not handled - nothing happened!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const EventNotHandledException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - id: OPEN_DOOR";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - id: OPEN_DOOR";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/ExceptionMessageTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-07
-* Changed:         2023-05-22
+* Changed:         2024-05-31
 *
 * */
 
@@ -27,16 +27,16 @@ namespace
 
   TEST_F(ExceptionMessageTest, toCharacterPointer)
   {
-    string text = "hello!";
-    ExceptionMessage message{text};
-    string_view characterField = message.toCharacterPointer();
+    const string text = "hello!";
+    const ExceptionMessage message{text};
+    const string_view characterField = message.toCharacterPointer();
 
     ASSERT_STREQ(text.c_str(), characterField.data());
   }
 
   TEST_F(ExceptionMessageTest, toCharacterPointer_empty)
   {
-    ExceptionMessage message{""};
+    const ExceptionMessage message{""};
     ASSERT_TRUE(message.toCharacterPointer() == nullptr);
   }
 }

+ 5 - 5
test/cases/core/exception/FileNotFoundExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-01
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const FileNotFoundException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - file not found!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - file not found!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const FileNotFoundException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + R"( thrown - "settings.txt" not found!)";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + R"( thrown - "settings.txt" not found!)";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/FileOperationExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-01
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const FileOperationException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - file operation failed!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - file operation failed!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const FileOperationException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + R"( thrown - creating directory "tmp")";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + R"( thrown - creating directory "tmp")";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/IllegalArgumentExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-01
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - passed argument is not valid!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - passed argument is not valid!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const IllegalArgumentException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - value is empty";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - value is empty";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/IllegalArithmeticOperationExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-01
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const IllegalArithmeticOperationException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - arithmetic operation is not allowed!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - arithmetic operation is not allowed!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const IllegalArithmeticOperationException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - division by zero";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - division by zero";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/IncompleteJsonExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-01
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const IncompleteJsonException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - this JSON string is incomplete.";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - this JSON string is incomplete.";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const IncompleteJsonException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - incomplete: {\"name\":\"}";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - incomplete: {\"name\":\"}";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/IndexOutOfBoundsExceptionTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-03-25
+* Changed:         2024-05-31
 *
 * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const IndexOutOfBoundsException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - provided index is out of bounds!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - provided index is out of bounds!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const IndexOutOfBoundsException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - index 3 is out of bounds!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - index 3 is out of bounds!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/NotImplementedExceptionTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-03-27
-* Changed:         2023-03-27
+* Changed:         2024-05-31
 *
 * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const NotImplementedException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - method is not implemented and should not be used!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - method is not implemented and should not be used!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const NotImplementedException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + R"lit( thrown - method "marshal" is not implemented!)lit";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + R"lit( thrown - method "marshal" is not implemented!)lit";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;

+ 5 - 5
test/cases/core/exception/NullPointerExceptionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-01
- * Changed:         2023-03-25
+ * Changed:         2024-05-31
  *
  * */
 
@@ -35,8 +35,8 @@ namespace
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - reference is null!";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - reference is null!";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;
@@ -55,8 +55,8 @@ namespace
           }
           catch (const NullPointerException &_exception)
           {
-            string actual = _exception.what();
-            string expected = _exception.getName() + " thrown - _value is null";
+            const string actual = _exception.what();
+            const string expected = _exception.getName() + " thrown - _value is null";
 
             EXPECT_STREQ(expected.c_str(), actual.c_str());
             throw;