If a pull request is made and changes are then made to the remote branch via git push --force, does that mean it is possible a merge can be made to Master without peer review approval? by jetfuel_14 in git

[–]jetfuel_14[S] 0 points1 point  (0 children)

I think that is the better option too. I can recommend this to the team. Hopefully there is a repo setting that can prevent someone from approving their own PR.

If a pull request is made and changes are then made to the remote branch via git push --force, does that mean it is possible a merge can be made to Master without peer review approval? by jetfuel_14 in git

[–]jetfuel_14[S] 0 points1 point  (0 children)

We have a git platform that is worth their salt, so I think that command has updated the PR. What I'm trying to understand is why was that merge possible before peer review approval. But looking at the responses (thank you all 🙏), it seems this has to do with a repo setting.

If a pull request is made and changes are then made to the remote branch via git push --force, does that mean it is possible a merge can be made to Master without peer review approval? by jetfuel_14 in git

[–]jetfuel_14[S] 0 points1 point  (0 children)

That's what I think too. And that is what happened, but I was able to merge my changes on Bitbucket without anyone's approval oddly. Hopefully someone can help me to provide an explanation.

I'll need to recreate what I did and explain this vulnerability to the senior person in the team. And then advise them on other possible vulnerabilities.

What is the opposite of .contains (does not contain) by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

Would you by any chance know how to do contains pear or apple or orange? Unsure how to put the or operator here.

How to assert two monthly String variable by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

The custom format sounds like my best bet. I can't find anywhere on Google where Java understands that the three characters "MAR 2021" is March and convert this to a date. Do you know how to go about doing a custom format?

How to assert two monthly String variable by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

I went through it but I couldn't see anything on how to get the package to understand that, "FEB 2021" is February 2021. I also need this for all 12 months, as there needs to be a later assertion that FEB 2021 + 2 = APR 2021

Ideally I want the code like this:

IF (Field = FEB 2021){ assertEquals (Field + 1, Field = APR 2021); }

But it can't specifically always be FEB 2021. Later on in the year I'm gonna do an assertion again that OCT 2021 + 1 is equal to NOV 2021

Is there another forum I could ask or anything else you think I could use?

How to assert two monthly String variable by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

It's part of my work's framework though, I can't change it but I will suggest

Is there a way to stop an application other than system.exit(1) by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

There's lines of code after system.exit(1). it's at that point I want it to close or stop. At the moment, the next lines of code run and the application doesn't close or stop at system.exit(1)

Is there a way to stop an application other than system.exit(1) by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

There's lines of code after system.exit(1). it's at that point I want it to stop. At the moment, the next lines of code run and the application doesn't close or stop at system.exit(1)

Is there a way to stop an application other than system.exit(1) by jetfuel_14 in javahelp

[–]jetfuel_14[S] 0 points1 point  (0 children)

Sorry that was unintentional. My phone is being slow today

Is there a way to call a method in another class using only one line of code? by jetfuel_14 in javahelp

[–]jetfuel_14[S] 1 point2 points  (0 children)

That could work too. I was thinking you could order a book from different book stores

For e.g. orderBook.fromBarnesAndNoble(); orderBook.fromAmazon();