Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* text=auto eol=lf

# Keep common binary artifacts untouched.
*.jar binary
*.zip binary
*.gz binary
*.ser binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
with:
java-version: 17
distribution: "adopt"
- name: Check LF line endings
shell: bash
run: |
if git grep -I -l $'\r' -- .; then
echo "CR characters found in tracked text files. Use LF line endings." >&2
exit 1
fi
- name: Setup settings.xml
run: cp settings.xml ~/.m2/settings.xml
- name: Test
Expand Down
40 changes: 20 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013 Codeforces
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The MIT License (MIT)

Copyright (c) 2013 Codeforces

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inmemo
======
In-memory storage to avoid requests to database, support hashmap-based indices, Nocturne class-reloading magic. Built upon Jucuzzi.
inmemo
======

In-memory storage to avoid requests to database, support hashmap-based indices, Nocturne class-reloading magic. Built upon Jucuzzi.
2 changes: 1 addition & 1 deletion bundle-skip-tests.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bundle.bat -DskipTests
bundle.bat -DskipTests
18 changes: 9 additions & 9 deletions bundle.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
setlocal enabledelayedexpansion
if not "!JAVA8_64_HOME!"=="" (
set PATH=!JAVA8_64_HOME!\bin;!PATH!
set JAVA_HOME=!JAVA8_64_HOME!
)
call mvn.cmd validate --batch-mode
call mvn.cmd -Dfile.encoding=UTF-8 -DcreateChecksum=true --batch-mode clean source:jar javadoc:jar repository:bundle-create install %*
setlocal enabledelayedexpansion

if not "!JAVA8_64_HOME!"=="" (
set PATH=!JAVA8_64_HOME!\bin;!PATH!
set JAVA_HOME=!JAVA8_64_HOME!
)

call mvn.cmd validate --batch-mode
call mvn.cmd -Dfile.encoding=UTF-8 -DcreateChecksum=true --batch-mode clean source:jar javadoc:jar repository:bundle-create install %*
258 changes: 129 additions & 129 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,129 +1,129 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<description>In-memory storage to avoid requests to database, support hashmap-based indices, Nocturne class-reloading magic. Built upon Jucuzzi.</description>
<inceptionYear>2014</inceptionYear>
<modelVersion>4.0.0</modelVersion>
<groupId>com.codeforces.inmemo</groupId>
<artifactId>inmemo</artifactId>
<version>2.0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>inmemo</name>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Codeforces/inmemo</url>
</repository>
</distributionManagement>
<url>https://github.com/Codeforces/inmemo</url>
<developers>
<developer>
<id>MikeMirzayanov</id>
<name>Mike Mirzayanov</name>
<email>mirzayanovmr@gmail.com</email>
<roles>
<role>owner, author</role>
</roles>
<timezone>+3</timezone>
<properties/>
</developer>
</developers>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/Codeforces/inmemo/issues</url>
</issueManagement>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>https://github.com/Codeforces/inmemo/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/Codeforces/inmemo.git</connection>
<developerConnection>scm:git:https://github.com/Codeforces/inmemo.git</developerConnection>
<url>https://github.com/Codeforces/inmemo.git</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-repository-plugin</artifactId>
<version>2.4</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>4.2.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
<argLine>-Xmx1200M</argLine>
<!-- Uncomment to build with JDK 9+ -->
<!--
<argLine>&#45;&#45;add&#45;opens java.base/java.lang=ALL&#45;UNNAMED &#45;&#45;add&#45;opens java.base/java.util=ALL&#45;UNNAMED &#45;&#45;add&#45;opens java.base/java.io=ALL&#45;UNNAMED</argLine>
-->
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>1.1.9.1</version>
</dependency>
<dependency>
<groupId>jacuzzi</groupId>
<artifactId>jacuzzi</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.4</version>
</dependency>
<dependency>
<groupId>net.sf.trove4j</groupId>
<artifactId>trove4j</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.5.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.5</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<description>In-memory storage to avoid requests to database, support hashmap-based indices, Nocturne class-reloading magic. Built upon Jucuzzi.</description>
<inceptionYear>2014</inceptionYear>
<modelVersion>4.0.0</modelVersion>
<groupId>com.codeforces.inmemo</groupId>
<artifactId>inmemo</artifactId>
<version>2.0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>inmemo</name>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Codeforces/inmemo</url>
</repository>
</distributionManagement>
<url>https://github.com/Codeforces/inmemo</url>
<developers>
<developer>
<id>MikeMirzayanov</id>
<name>Mike Mirzayanov</name>
<email>mirzayanovmr@gmail.com</email>
<roles>
<role>owner, author</role>
</roles>
<timezone>+3</timezone>
<properties/>
</developer>
</developers>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/Codeforces/inmemo/issues</url>
</issueManagement>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>https://github.com/Codeforces/inmemo/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/Codeforces/inmemo.git</connection>
<developerConnection>scm:git:https://github.com/Codeforces/inmemo.git</developerConnection>
<url>https://github.com/Codeforces/inmemo.git</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-repository-plugin</artifactId>
<version>2.4</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>4.2.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
<argLine>-Xmx1200M</argLine>
<!-- Uncomment to build with JDK 9+ -->
<!--
<argLine>&#45;&#45;add&#45;opens java.base/java.lang=ALL&#45;UNNAMED &#45;&#45;add&#45;opens java.base/java.util=ALL&#45;UNNAMED &#45;&#45;add&#45;opens java.base/java.io=ALL&#45;UNNAMED</argLine>
-->
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>1.1.9.1</version>
</dependency>
<dependency>
<groupId>jacuzzi</groupId>
<artifactId>jacuzzi</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.4</version>
</dependency>
<dependency>
<groupId>net.sf.trove4j</groupId>
<artifactId>trove4j</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.5.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.5</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
20 changes: 10 additions & 10 deletions src/main/java/com/codeforces/inmemo/HasId.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.codeforces.inmemo;
import java.io.Serializable;
/**
* @author Mike Mirzayanov (mirzayanovmr@gmail.com)
*/
public interface HasId extends Serializable {
long getId();
}
package com.codeforces.inmemo;

import java.io.Serializable;

/**
* @author Mike Mirzayanov (mirzayanovmr@gmail.com)
*/
public interface HasId extends Serializable {
long getId();
}
Loading
Loading