Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
6633375: FileOutputStream_md.c should be merged into FileOutputStream.c
Reviewed-by: naoto
  • Loading branch information
Brian Burkhalter committed Jun 25, 2021
1 parent 223759f commit 3fae4b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 77 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -45,8 +45,7 @@ jfieldID fos_fd; /* id for jobject 'fd' in java.io.FileOutputStream */

JNIEXPORT void JNICALL
Java_java_io_FileOutputStream_initIDs(JNIEnv *env, jclass fosClass) {
fos_fd =
(*env)->GetFieldID(env, fosClass, "fd", "Ljava/io/FileDescriptor;");
fos_fd = (*env)->GetFieldID(env, fosClass, "fd", "Ljava/io/FileDescriptor;");
}

/**************************************************************
Expand All @@ -67,8 +66,7 @@ Java_java_io_FileOutputStream_write(JNIEnv *env, jobject this, jint byte, jboole

JNIEXPORT void JNICALL
Java_java_io_FileOutputStream_writeBytes(JNIEnv *env,
jobject this, jbyteArray bytes, jint off, jint len, jboolean append)
{
jobject this, jbyteArray bytes, jint off, jint len, jboolean append) {
writeBytes(env, this, bytes, off, len, append, fos_fd);
}

72 changes: 0 additions & 72 deletions src/java.base/unix/native/libjava/FileOutputStream_md.c

This file was deleted.

1 comment on commit 3fae4b3

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.