Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8276655: Use blessed modifier order in SCTP
Reviewed-by: alanb, dfuchs
  • Loading branch information
magicus committed Nov 4, 2021
1 parent 2b5a32c commit 81203ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 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 @@ -35,11 +35,11 @@ public class AssociationChange extends AssociationChangeNotification
implements SctpNotification
{
/* static final ints so that they can be referenced from native */
@Native private final static int SCTP_COMM_UP = 1;
@Native private final static int SCTP_COMM_LOST = 2;
@Native private final static int SCTP_RESTART = 3;
@Native private final static int SCTP_SHUTDOWN = 4;
@Native private final static int SCTP_CANT_START = 5;
@Native private static final int SCTP_COMM_UP = 1;
@Native private static final int SCTP_COMM_LOST = 2;
@Native private static final int SCTP_RESTART = 3;
@Native private static final int SCTP_SHUTDOWN = 4;
@Native private static final int SCTP_CANT_START = 5;

private Association association;

Expand Down
14 changes: 7 additions & 7 deletions src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 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 @@ -36,12 +36,12 @@ public class PeerAddrChange extends PeerAddressChangeNotification
implements SctpNotification
{
/* static final ints so that they can be referenced from native */
@Native private final static int SCTP_ADDR_AVAILABLE = 1;
@Native private final static int SCTP_ADDR_UNREACHABLE = 2;
@Native private final static int SCTP_ADDR_REMOVED = 3;
@Native private final static int SCTP_ADDR_ADDED = 4;
@Native private final static int SCTP_ADDR_MADE_PRIM = 5;
@Native private final static int SCTP_ADDR_CONFIRMED =6;
@Native private static final int SCTP_ADDR_AVAILABLE = 1;
@Native private static final int SCTP_ADDR_UNREACHABLE = 2;
@Native private static final int SCTP_ADDR_REMOVED = 3;
@Native private static final int SCTP_ADDR_ADDED = 4;
@Native private static final int SCTP_ADDR_MADE_PRIM = 5;
@Native private static final int SCTP_ADDR_CONFIRMED =6;

private Association association;

Expand Down

1 comment on commit 81203ef

@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.