From 6f2f816d40d96e193445f77b3221cefec4640329 Mon Sep 17 00:00:00 2001 From: devjeonghwan Date: Mon, 21 Aug 2023 06:12:03 +0900 Subject: [PATCH] Release hotfix 0.0.11 --- README.md | 58 ++++++++++++++++++++++++++-------------------------- build.gradle | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 471f424..079433c 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Opack is a Java library that can serialize/deserialize between Java objects and Gradle: ```gradle dependencies { - implementation 'com.realtimetech:opack:0.0.10' + implementation 'com.realtimetech:opack:0.0.11' } ``` @@ -55,7 +55,7 @@ Maven: com.realtimetech opack - 0.0.10 + 0.0.11 ``` @@ -275,39 +275,39 @@ public class SomeObject { ```java OpackObject rootObject = new OpackObject<>(); - { - OpackArray opackArray = new OpackArray<>(); - opackArray.add(Integer.MAX_VALUE); - rootObject.put("array", opackArray); - } +{ + OpackArray opackArray = new OpackArray<>(); + opackArray.add(Integer.MAX_VALUE); + rootObject.put("array", opackArray); +} - { - OpackArray opackArray = OpackArray.createWithArrayObject(new int[]{1, 2, 3, 4, 5, 6}); - rootObject.put("unmodifiable(but, really fast) array", opackArray); - } +{ + OpackArray opackArray = OpackArray.createWithArrayObject(new int[]{1, 2, 3, 4, 5, 6}); + rootObject.put("unmodifiable(but, really fast) array", opackArray); +} - { - OpackObject opackObject = new OpackObject<>(); - opackObject.put("int", 1); - opackObject.put("float", 1.1f); - opackObject.put("long", Long.MAX_VALUE); - opackObject.put("double", 1.1d); +{ + OpackObject opackObject = new OpackObject<>(); + opackObject.put("int", 1); + opackObject.put("float", 1.1f); + opackObject.put("long", Long.MAX_VALUE); + opackObject.put("double", 1.1d); - opackObject.put(1024, "2^10"); - opackObject.put( - OpackArray.createWithArrayObject(new byte[]{1,2,3,4,5}), - "a lot of bytes" - ); + opackObject.put(1024, "2^10"); + opackObject.put( + OpackArray.createWithArrayObject(new byte[]{1,2,3,4,5}), + "a lot of bytes" + ); - rootObject.put("number_map", opackObject); - } + rootObject.put("number_map", opackObject); +} - OpackArray opackArray = (OpackArray) rootObject.get("array"); - OpackObject opackObject = (OpackObject) rootObject.get("number_map"); +OpackArray opackArray = (OpackArray) rootObject.get("array"); +OpackObject opackObject = (OpackObject) rootObject.get("number_map"); - System.out.println("1024 is " + (opackObject.get(1024))); - System.out.println("Array length is " + (opackArray.length())); - System.out.println("First element is " + (opackArray.get(0))); +System.out.println("1024 is " + (opackObject.get(1024))); +System.out.println("Array length is " + (opackArray.length())); +System.out.println("First element is " + (opackArray.get(0))); ``` ### To-Do diff --git a/build.gradle b/build.gradle index c4eea59..2cd9ec1 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ plugins { group 'com.realtimetech' archivesBaseName = "opack" -version = "0.0.10" +version = "0.0.11" compileJava.options.encoding = 'UTF-8'