mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Remove redundant newlines
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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/xsd/maven-4.0.0.xsd">
|
||||
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
@@ -25,7 +24,7 @@
|
||||
<groupId>net.openhft</groupId>
|
||||
<artifactId>third-party-bom</artifactId>
|
||||
<type>pom</type>
|
||||
<version>3.19.2</version>
|
||||
<version>3.19.4</version>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
@@ -73,10 +72,8 @@
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<!-- https://github.com/OpenHFT/Chronicle-Map/issues/222 -->
|
||||
<groupId>com.intellij</groupId>
|
||||
<groupId>org.jetbrains</groupId>
|
||||
<artifactId>annotations</artifactId>
|
||||
<version>12.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@@ -67,7 +67,6 @@ import static net.openhft.chronicle.hash.impl.CompactOffHeapLinearHashTable.*;
|
||||
import static net.openhft.chronicle.map.ChronicleHashCorruptionImpl.format;
|
||||
import static net.openhft.chronicle.map.ChronicleHashCorruptionImpl.report;
|
||||
|
||||
|
||||
public abstract class VanillaChronicleHash<K,
|
||||
C extends HashEntry<K>, SC extends HashSegmentContext<K, ?>,
|
||||
ECQ extends ExternalHashQueryContext<K>>
|
||||
|
||||
@@ -49,8 +49,7 @@ public class Issue229Test {
|
||||
.entries(10)
|
||||
.createPersistedTo(mapFile)) {
|
||||
|
||||
|
||||
// It shall not be possible to recover since the
|
||||
// It shall not be possible to recover since the
|
||||
// file is open by the readMap
|
||||
try (ChronicleMap<Long, Long> recoverMap = ChronicleMap
|
||||
.of(Long.class, Long.class)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.openhft.chronicle.map.fromdocs.acid;
|
||||
|
||||
|
||||
public interface ChronicleAcidIsolation extends java.sql.Connection{
|
||||
|
||||
int LOWEST_LATENCY = ChronicleAcidIsolation.TRANSACTION_NONE;
|
||||
|
||||
+8
-18
@@ -17,8 +17,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
private String priorCusip;
|
||||
private Double aCoupon;
|
||||
|
||||
|
||||
public synchronized void put(String cusip, BondVOInterface bond) throws Exception {
|
||||
public synchronized void put(String cusip, BondVOInterface bond) throws Exception {
|
||||
|
||||
System.out.println(
|
||||
" , @t="+System.currentTimeMillis()+
|
||||
@@ -39,8 +38,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
//here is where the drama happens
|
||||
//here is where the drama happens
|
||||
public synchronized BondVOInterface get(String cusip) throws Exception {
|
||||
System.out.println(
|
||||
" , @t="+System.currentTimeMillis()+
|
||||
@@ -175,8 +173,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
// intense. In the real world, even in Captital Markets 'dirty read' intolerance
|
||||
// is likely the only isolation level Chronicle would accommodate.
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public void setAutoCommit(boolean autoCommit) throws SQLException {
|
||||
|
||||
}
|
||||
@@ -186,8 +183,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public void rollback(Savepoint savepoint) throws SQLException {
|
||||
|
||||
}
|
||||
@@ -197,9 +193,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public Statement createStatement() throws SQLException {
|
||||
return null;
|
||||
}
|
||||
@@ -219,8 +213,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public boolean isClosed() throws SQLException {
|
||||
return false;
|
||||
}
|
||||
@@ -250,8 +243,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public SQLWarning getWarnings() throws SQLException {
|
||||
return null;
|
||||
}
|
||||
@@ -306,8 +298,7 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public void releaseSavepoint(Savepoint savepoint) throws SQLException {
|
||||
|
||||
}
|
||||
@@ -432,5 +423,4 @@ public class ChronicleAcidIsolationGovernor implements ChronicleAcidIsolation {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.openhft.chronicle.map.fromdocs.acid.exodus;
|
||||
|
||||
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.locks.StampedLock;
|
||||
|
||||
|
||||
public class DirtyReadTolerance<K,V> {
|
||||
|
||||
public static void main(String args[]) throws Exception {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.openhft.chronicle.map.fromdocs.acid.exodus;
|
||||
|
||||
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
import net.openhft.chronicle.map.fromdocs.acid.ChronicleAcidIsolation;
|
||||
@@ -27,8 +26,7 @@ public class DirtyReadVictim implements Runnable {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
try {
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* ben.cotton@rutgers.edu START
|
||||
*/
|
||||
Double coupon = 0.00;
|
||||
@@ -99,8 +97,7 @@ public class DirtyReadVictim implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ChronicleMap getCraig() {
|
||||
public ChronicleMap getCraig() {
|
||||
return this.chm;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.openhft.chronicle.map.fromdocs.acid.genesis;
|
||||
|
||||
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.locks.StampedLock;
|
||||
|
||||
|
||||
public class DirtyReadTolerance<K,V> {
|
||||
|
||||
public static void main(String args[]) throws Exception {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.openhft.chronicle.map.fromdocs.acid.genesis;
|
||||
|
||||
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
import net.openhft.chronicle.map.fromdocs.acid.ChronicleAcidIsolation;
|
||||
@@ -27,8 +26,7 @@ public class DirtyReadVictim implements Runnable {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
try {
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* ben.cotton@rutgers.edu START
|
||||
*/
|
||||
Double coupon = 0.00;
|
||||
@@ -99,8 +97,7 @@ public class DirtyReadVictim implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ChronicleMap getCraig() {
|
||||
public ChronicleMap getCraig() {
|
||||
return this.chm;
|
||||
}
|
||||
|
||||
|
||||
+2
-4
@@ -41,8 +41,7 @@ public class ChronicleStampedLock extends StampedLock {
|
||||
LongValue.class
|
||||
); //WriterSet cardinality
|
||||
|
||||
|
||||
ChronicleStampedLock(String chronicelStampedLockLocality) { // path of Operand set i.e. /dev/shm/
|
||||
ChronicleStampedLock(String chronicelStampedLockLocality) { // path of Operand set i.e. /dev/shm/
|
||||
try {
|
||||
chm = offHeapLock(chronicelStampedLockLocality);
|
||||
chmR = offHeapLockReaderCount(chronicelStampedLockLocality + "=ReaderCount");
|
||||
@@ -120,8 +119,7 @@ public class ChronicleStampedLock extends StampedLock {
|
||||
lastWriterT = chm.get("LastWriterTime ");
|
||||
writeLockHolderCount = chmW.get("WriterCount ");
|
||||
|
||||
|
||||
l = offHeapLock.getEntryLockState();
|
||||
l = offHeapLock.getEntryLockState();
|
||||
|
||||
if (l != 0L)
|
||||
return 0L;
|
||||
|
||||
+1
-2
@@ -8,8 +8,7 @@ import org.junit.*;
|
||||
|
||||
public class ChronicleStampedLockTest {
|
||||
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void tryOptimisticRead() {
|
||||
Assert.assertEquals(Boolean.TRUE, Boolean.TRUE);
|
||||
}
|
||||
|
||||
-3
@@ -1,6 +1,5 @@
|
||||
package net.openhft.chronicle.map.fromdocs.acid.revelations;
|
||||
|
||||
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.ChronicleMapBuilder;
|
||||
import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
@@ -11,7 +10,6 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.locks.StampedLock;
|
||||
|
||||
|
||||
public class DirtyReadTolerance<K,V> {
|
||||
|
||||
public static void main(String args[]) throws Exception {
|
||||
@@ -40,5 +38,4 @@ public class DirtyReadTolerance<K,V> {
|
||||
//.create();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -9,7 +9,6 @@ import static net.openhft.chronicle.values.Values.newNativeReference;
|
||||
|
||||
//import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
|
||||
|
||||
public class DirtyReadOffender {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user