Skip to content
Permalink
Browse files
Move CmsfThreadLocalStack to yoko-rmi-impl
Move CmsfThreadLocalStack to yoko-rmi-impl, as it's code there that
needs to find out what should be the Custom Marshal Stream Format
version to be used.
  • Loading branch information
ngmr committed Apr 7, 2015
1 parent 0b839ee commit fa83e524ec33733e5ab7ca33de1b8532a6f09d7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
@@ -8,6 +8,7 @@
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import org.apache.yoko.rmi.cmsf.CmsfThreadLocalStack;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.LocalObject;
import org.omg.IOP.TAG_RMI_CUSTOM_MAX_STREAM_FORMAT;
@@ -7,6 +7,7 @@
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import org.apache.yoko.rmi.cmsf.CmsfThreadLocalStack;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.LocalObject;
import org.omg.IOP.RMICustomMaxStreamFormat;
@@ -1,4 +1,4 @@
package org.apache.yoko.orb.cmsf;
package org.apache.yoko.rmi.cmsf;

public final class CmsfThreadLocalStack {
private static final ThreadLocal<Frame> cmsfFrames =
@@ -23,15 +23,15 @@ private Frame() {
}
}

static void push(int value) {
public static void push(int value) {
cmsfFrames.set(new Frame(value, cmsfFrames.get()));
}

static int peek() {
public static int peek() {
return cmsfFrames.get().value;
}

static int pop() {
public static int pop() {
Frame f = cmsfFrames.get();
cmsfFrames.set(f.prev);
return f.value;

0 comments on commit fa83e52

Please sign in to comment.