Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly type this in the future #449

Open
github-actions bot opened this issue May 9, 2024 · 0 comments
Open

Properly type this in the future #449

github-actions bot opened this issue May 9, 2024 · 0 comments
Labels

Comments

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2024

Properly type this in the future

             * Byte Array cases
             */
            else if (obj instanceof Byte[] || obj instanceof byte[]) {
                writeBytes(obj, dataOut);
            }
            /**
             * String case
             * */
            else if (obj instanceof String) {
                writeUTF((String) obj, dataOut);
            }

            // TODO: Properly type this in the future
            else if (obj instanceof Object) {
                writeUTF(String.valueOf(obj), dataOut);
            }

            /**
             * Key, Value case
             * */
            else if (obj instanceof Map.Entry) {
                writeKeyValue((Map.Entry) obj, dataOut);
            }

            else{
                throw new WayangException("Unexpected element type " + obj.getClass());
            }

        } catch (IOException e) {
            e.printStackTrace();
        }

b486b16bbf5753fbec1338c4d5250e7197caa056

@github-actions github-actions bot added the todo label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants